python中raw_input输入问题
int(100.5)100这个对着int(raw_input('enterthelength'))enterthelength100.5Traceback(mostrec...
int(100.5)
100
这个对着
int(raw_input('enter the length'))
enter the length100.5
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
int(raw_input('enter the length'))
ValueError: invalid literal for int() with base 10: '100.5'
为啥这下就不对了? 展开
100
这个对着
int(raw_input('enter the length'))
enter the length100.5
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
int(raw_input('enter the length'))
ValueError: invalid literal for int() with base 10: '100.5'
为啥这下就不对了? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询