摘要:
python2内容无法写入csv,报错:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0 3: ordinal not in range(128) 因为要跟2的代码对接,代码需要写入表格,但是一直写入不进去 阅读全文
摘要:
Stackoverflow 回答: 将byte类型转化:byte_string.decode('utf 8') Jinja2 is using Unicode internally which means that you have to pass Unicode objects to the re 阅读全文