V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  Iamdoudou  ›  全部回复第 1 页 / 共 1 页
回复总数  2
2018-01-05 16:24:46 +08:00
回复了 Iamdoudou 创建的主题 Python Python 报错“local variable ‘id’ referebced before assigment”
这个我想了下,在前面定义了一个空的 id,但是现在做着发现了有一个错误,提示‘ gbk ’ codec cna't encode character u'\xa0'in position 421:illegal multibyte sequence
这块,我已经在循环里面增加了
for i in range(len(l)):
l[i]=l[i].replace(u'\xa0', '')
为啥还是出现这个
2018-01-05 15:27:58 +08:00
回复了 Iamdoudou 创建的主题 Python Python 报错“local variable ‘id’ referebced before assigment”
求教,正在慢慢摸索中
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3218 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 11:48 · PVG 19:48 · LAX 04:48 · JFK 07:48
Developed with CodeLauncher
♥ Do have faith in what you're doing.