Python
简单的名字都不行
这个作者很懒,什么都没留下…
展开
-
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 · 1087 阅读 · 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 · 28218 阅读 · 0 评论