码迷,mamicode.com
首页 > 编程语言 > 详细

python wxpy初体验

时间:2018-11-30 22:33:27      阅读:505      评论:0      收藏:0      [点我收藏+]

标签:error:   red   har   格式   用法   argument   str   require   问题   

 

 

 

 

遇到的问题

1)TypeError: dump() missing 1 required positional argument: ‘fp‘

字典和json格式转换的时候遇到的,用法错误,需要用dumps

2)UnicodeEncodeError: ‘latin-1‘ codec can‘t encode characters in position 50-54:

图灵API 说明里面要求要utf-8编码,s.encode(‘utf-8‘)即可

python wxpy初体验

标签:error:   red   har   格式   用法   argument   str   require   问题   

原文地址:https://www.cnblogs.com/mumu0802/p/10046684.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!