python 报错TypeError: can only concatenate str (not "bytes") to str
背景:项目Python2.7升级到Python3.8,Django1.10升级到Django3.0因为python3.4后不能直接使用unicode(value, 'utf-8')了所以代码data = '{"id":"' + location_key_id + '","location_name": "' + unicode(location_name, 'utf-8') + '"...
原创
2020-01-08 11:03:00 ·
26132 阅读 ·
0 评论