python运算符的计算

输入:
A = float(input("Enter the first number: "))
B = float(input("Enter the second number: "))
C = input("Enter the operator: ")
if C == "+":
Sum1 = A+B
print(A,"+",B,"=",round(Sum1,1))
elif C =="-":
Sum2 = A-B
print(A,"-",B,"=",round(Sum2,1))
elif C == "":
Sum3 = A
B
print(A,"*",B,"=",round(Sum3,1))
elif C == "/":
Sum4 = A/B
print=(A,"/",B,"=",round(Sum4,1))
else:
print("Operator not supported.")

img


输出的时候除法运算不出来,应该怎么去修改呢

print=(A,"/",B,"=",round(Sum4,1))
你自己看不出来多了个等号吗

print=(A,"/",B,"=",round(Sum4,1))
print这里多了个=

您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!
PS:问答VIP年卡 【限时加赠:IT技术图书免费领】,了解详情>>> https://vip.csdn.net/askvip?utm_source=1146287632