您的位置:首页 > 编程语言 > Python开发

Python3 error: initial_value must be str or None

2018-01-18 17:29 1146 查看
注意Python3 中,bytes 和 str 的区别:

Traceback (most recent call last):
File "C:/Python/projects/test.py", line 10, in <module>
result = Image.open(StringIO(r.content))
TypeError: initial_value must be str or None, not bytes


详解请看:

https://stackoverflow.com/questions/31064981/python3-error-initial-value-must-be-str-or-none
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python
相关文章推荐