我想用python制作一个脚本来完成这个任务a*2/2*7*1443

2024-06-16 12:54:36 发布

您现在位置:Python中文网/ 问答频道 /正文

a = input("enter resulte  : ")
b = int(a/2)
c = int(b*7)
d = int(c*1443)
print(d)
but give me this error
enter resulte  : 1'
Traceback (most recent call last):
  File "script.py", line 3, in <module>
    b = int(a/2)

TypeError:/:“str”和“int”的操作数类型不受支持


Tags: mostinputerrorcallthisbutintme