我想通过python a脚本做到这一点*2/2*7*1443


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:for/:'str''and'int'

的不支持操作数类型

您正在尝试将字符串而不是整数分开。以下代码将起作用。

a = int(input("enter resulte  : "))

相关内容

最新更新