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

10.1.1的例程有错误 #25

Open
Riiick2011 opened this issue Aug 23, 2018 · 0 comments
Open

10.1.1的例程有错误 #25

Riiick2011 opened this issue Aug 23, 2018 · 0 comments

Comments

@Riiick2011
Copy link

Riiick2011 commented Aug 23, 2018

无法对中文检索词进行检索,我对程序进行了几处修改可以了
第一处,要对url中的中文进行转码,需要提前import string:
url = URL_TEMPLATE.format(keyword=keyword, index=index) url = urllib.parse.quote(url, safe=string.printable)
第二处,要以'r'模式而不是'rb'模式读取keywords.txt:
with open('keywords.txt', 'r') as f:

@Riiick2011 Riiick2011 changed the title 请问Win下Anaconda环境如何安装atlas 10.1.1下载的图片与keywords完全无关 Sep 17, 2018
@Riiick2011 Riiick2011 changed the title 10.1.1下载的图片与keywords完全无关 10.1.1的例程,keyword无法使用中文检索 Sep 17, 2018
@Riiick2011 Riiick2011 changed the title 10.1.1的例程,keyword无法使用中文检索 10.1.1的例程有错误 Sep 18, 2018
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