python转换为int型异常

python转换为int型错误choicetime0choice_3+choice_4print choicetime0choice_timeint(choicetime0)Trac

python转换为int型错误
choicetime0=choice_3+choice_4
print choicetime0
choice_time=int(choicetime0)




Traceback (most recent call last):
  File "D:\程序\python\ionogram_measure.py", line 826, in OnFindMe
  choice_time1=int(choicetime01)
ValueError: invalid literal for int() with base 10: ''

print choicetime0 输出的是0300,然后一转换就报上面的错了

[解决办法]

探讨
Traceback (most recent call last):
File "D:\程序\python\ionogram_measure.py", line 826, in OnFindMe
choice_time1=int(choicetime01)
ValueError: invalid literal for int() with base 10: ''