if(输入 == 运算符):无法在 python 计算器中工作?
if (input == operator): not working in python calculator?
print ("THE CALCULATOR")
print ("Type 1st no")
n = input()
print("Type 2nd no")
n2 = input()
print("Which Operator?")
n3 = input()
if (n3 == +):
print("The anwser is", int(n) + int(n2))
变化:-
if (n3 == +):
收件人:-
if (n3 == '+'):
print ("THE CALCULATOR")
print ("Type 1st no")
n = input()
print("Type 2nd no")
n2 = input()
print("Which Operator?")
n3 = input()
if (n3 == +):
print("The anwser is", int(n) + int(n2))
变化:-
if (n3 == +):
收件人:-
if (n3 == '+'):