Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: invalid literal for int() with base 10: '70LL' #3

Open
JingLuo2017 opened this issue Mar 10, 2018 · 0 comments
Open

ValueError: invalid literal for int() with base 10: '70LL' #3

JingLuo2017 opened this issue Mar 10, 2018 · 0 comments

Comments

@JingLuo2017
Copy link

您好,我使用的是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(),不知道该如何修改?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant