用 Intellij 编写 demo 需要包装一下
f.write(unicode('hello'))
跟IDE没有关系,但是你需要配置IDE默认保存的编码是UTF-8
Sign in to make a reply
斯普唐纳睿
用 Intellij 编写 demo 需要包装一下