docs: 150题添加注释

This commit is contained in:
Yuan Yuan
2024-12-26 14:09:06 -06:00
committed by GitHub
parent 0fa443ce1a
commit 0638ba5ad8

View File

@ -200,6 +200,7 @@ class Solution(object):
else:
op2 = stack.pop()
op1 = stack.pop()
# 由题意"The division always truncates toward zero"所以使用int()可以天然取整
stack.append(str(int(eval(op1 + token + op2))))
return int(stack.pop())
```