【发布时间】:2020-06-04 11:59:50
【问题描述】:
x = 'Amazing!! Fantastic coffee and cakes to die for \\xf0\\x9f\\x98\\x80\\xf0\\x9f\\x98\\x80'
y = 'There is a line outside the door for good reason! Everything (and there is plenty) is absolutely excellent. As long as you\\xe2\\x80\\x99re a fan of the best freshly made French baked goods and enjoy an amazing croque monsieur, you\\xe2\\x80\\x99ll be happy here!'
如何解码这些字符串并存储在一个平面文件中,以在 csv 中显示所有表情符号和其他特殊字符而不是字节
【问题讨论】:
标签: python python-3.x encoding utf-8