永发信息网

python怎么处理编码 typeerror:coercing to unicode:need string or buffer,in

答案:2  悬赏:30  手机版
解决时间 2021-03-07 19:59
  • 提问者网友:咪咪
  • 2021-03-07 07:40
python怎么处理编码 typeerror:coercing to unicode:need string or buffer,in
最佳答案
  • 五星知识达人网友:举杯邀酒敬孤独
  • 2019-03-30 01:25
translate只能接受一个参数(转化表)! 用法如下: 先创建一个转化表 lect_table = ''.maketrans('xcsdf','12345') filename.translate(lect_table)
全部回答
  • 1楼网友:像个废品
  • 2020-12-08 14:16
temp_min = weather_data[time_index]['low'], temp_max = weather_data[time_index]['high'] description = weather_data[time_index]['text'].replace('/', u'转') wind_deg = weather_data[time_index]['wind'] response = city_name + time_name + description + u',' + wind_deg + u',' + u'最高温度' + temp_max+ u'>摄氏度,' + u'最低温度' + temp_min + u'摄氏度'
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯