Chinaunix首页 | 论坛 | 博客
  • 博客访问: 137464
  • 博文数量: 50
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 482
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-02 23:43
文章分类

全部博文(50)

文章存档

2017年(1)

2010年(1)

2008年(5)

2007年(25)

2006年(18)

我的朋友

分类: Python/Ruby

2017-09-06 15:18:34

data = urllib.parse.urlencode(value)
response = urllib.request.urlopen ("",data)
报错 “POST data should be bytes or an iterable of bytes”
第一句改为:data = urllib.parse.urlencode(value).encode(eccoding="UTF-8") 解决
阅读(1633) | 评论(0) | 转发(0) |
0

上一篇:IOR file '/tmp/gconfd-root/lock/ior' not opened

下一篇:没有了

给主人留下些什么吧!~~