我试图制作一个非常简单的文本计算器,但我一直遇到这个问题。
这是我的代码:
num1 = input("Enter in the first number")
num2 = input("Enter in the second number")
sign = input("Enter in the calculator operator you would like")
elif sign = "+":
print(num1 + num2)
elif sign = "-":
print(num1 - num2)
elif sign = "*":
print(num1*num2)
elif sign = "/":
print(num1/num2)
抱歉,我是 python 新手...
MMTTMM
偶然的你
大话西游666
相关分类