- 博客(1)
- 收藏
- 关注
转载 python编写时遇到的小问题
with open('information.txt','r+',encoding='utf-8') as f: 一定要指定编码方式,它和单纯的open函数不一样,不是默认是utf-8的编码方式。 print("%s %s %s %s " % (k, get_price(k), val, val * get_price(k))) 不同字节的输出时...
2018-06-05 22:34:00
66
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅