1. 改配置

  Preferences->Settings  三个全部加上 "default_encoding": "UTF-8"

  Sublime中文编码问题

2. 代码编写

  2.1 file->save with encoding->'utf-8'

  2.2 头部加上:#coding:utf-8

  2.3 赋值中文字符串前加u

  2.4 打印的时候,加 .encode('utf-8')

  Sublime中文编码问题

 

相关文章:

  • 2021-12-05
  • 2021-11-10
  • 2022-02-28
  • 2021-12-10
  • 2021-07-02
  • 2021-06-14
  • 2021-09-02
猜你喜欢
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-01-18
  • 2021-12-21
相关资源
相似解决方案