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

提示错误:UnicodeEncodeError: 'ascii' codec #11

Open
liupingok opened this issue Jun 17, 2016 · 0 comments
Open

提示错误:UnicodeEncodeError: 'ascii' codec #11

liupingok opened this issue Jun 17, 2016 · 0 comments

Comments

@liupingok
Copy link

liupingok commented Jun 17, 2016

#!/usr/bin/python
# encoding: utf-8
"""IP地址转换"""

import IP

location = IP.find('www.baidu.com')

print location

Traceback (most recent call last):
File "d:\www\spider\logip2location\cron.py", line 9, in
print location
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)

@liupingok liupingok changed the title 提示错误 提示错误:UnicodeEncodeError: 'ascii' codec Jun 17, 2016
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