2108LEO @ 2023-12-27 20:23:37
x,y,cal=input().strip().split()
x,y=map(int,[x,y])
if cal=="+":
print(int(x+y))
elif cal=="*":
print(int(x*y))
elif cal=="-":
print(int(x-y))
elif cal=="/":
if y==0:
print("Divided by zeros")
else:
print(int(x/y))
else:
print("Invalid operator!")
by 2108LEO @ 2023-12-27 20:50:33
少输了"!" 多输了一个's'
by LINYUHENG @ 2024-07-05 20:14:28
@2108LEO 建议复制(copy)