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

str没有decode这个属性? #5

Open
chez314 opened this issue Jan 5, 2017 · 1 comment
Open

str没有decode这个属性? #5

chez314 opened this issue Jan 5, 2017 · 1 comment

Comments

@chez314
Copy link

chez314 commented Jan 5, 2017

AttributeError: 'str' object has no attribute 'decode'

@chez314 chez314 changed the title 是不是python3.6是utf-8编码,所以str没有decode这个属性? str没有decode这个属性? Jan 5, 2017
@ethan-funny
Copy link
Owner

Python3 字符串默认都是 Unicode 类型,不用 decode,也没有 decode 方法。

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

2 participants