You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "G:/mycode/python/CNKICrawler/spider_main.py", line 20, in
currentpage = cf.getint('base', 'currentpage')
File "C:\Users\AppData\Local\Programs\Python\Python35\lib\configparser.py", line 816, in getint
fallback=fallback, **kwargs)
File "C:\Users\AppData\Local\Programs\Python\Python35\lib\configparser.py", line 806, in _get_conv
**kwargs)
File "C:\Users\AppData\Local\Programs\Python\Python35\lib\configparser.py", line 800, in _get
return conv(self.get(section, option, **kwargs))
ValueError: invalid literal for int() with base 10: '70LL'
您好,我使用的是pycharm进行编译的,python版本是3.6.4。运行时,具体报错信息显示如下:
Traceback (most recent call last):
File "G:/mycode/python/CNKICrawler/spider_main.py", line 20, in
currentpage = cf.getint('base', 'currentpage')
File "C:\Users\AppData\Local\Programs\Python\Python35\lib\configparser.py", line 816, in getint
fallback=fallback, **kwargs)
File "C:\Users\AppData\Local\Programs\Python\Python35\lib\configparser.py", line 806, in _get_conv
**kwargs)
File "C:\Users\AppData\Local\Programs\Python\Python35\lib\configparser.py", line 800, in _get
return conv(self.get(section, option, **kwargs))
ValueError: invalid literal for int() with base 10: '70LL'
我在StackOverflow查了一下说的是要数值类型需要转化,将int()转化为float(),不知道该如何修改?
The text was updated successfully, but these errors were encountered: