的不支持操作数类型
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 : "))