- 博客(2)
- 资源 (1)
- 问答 (1)
- 收藏
- 关注
原创 invalid literal for float(): 和 OverflowError: cannot convert float infinity to integer 问题
CRITICAL:报错信息为:Traceback (most recent call last): File "/opt/HDS_volume_expand.py", line 220, in vv_expand_check vv_size = type_conversion((vv_show_read_1[0]) * 1024) File "/opt/HDS_volume_exp...
2018-09-27 17:37:03 27783
原创 Python ValueError:invalid literal for int() with base 10 : ' 浮点数'
在使用int()强制类型转换时,当遇到被转换的数据是浮点数的字符串类型时,会报这个错误,如:a = '123.45'b = int(a)print (b)Traceback (most recent call last): File "G:/python2.7.13/test.py", line 8, in <module> b = int(a)ValueE...
2018-09-17 20:06:46 1056 1
TA创建的收藏夹 TA关注的收藏夹
TA关注的人