简单的计算机(一学就会)
"""计算器"""
while 8 < 9:
a = input("number1:")
b = input("number2:")
c = input("请输入运算符:")
if c == "+":
d = float(a) + float(b)
print(d)
elif c == "-":
e = float(a) - float(b)
print(e)
elif c == "*":
f = float(a) * float(b)
print(f)
elif c == "/":
g = float(a) / float(b)
print(g){:5_95:} {:5_95:}
页:
[1]