window->preferences->general->editors->text editors->spelling->encoding-> UTF-8

window->preferences->general->workspace->text file encoding-> UTF-8

 

打开eclipse安装目录->eclipse.ini,末行加上 -Dfile.encoding=UTF-8”

文件编码

py文件记得保存成UTF-8,文件首行加上”#coding=utf-8”

run时设置

run-->run configurations->python run->Common-> Encoding ->UTF-8

相关文章:

  • 2021-08-27
  • 2021-10-08
  • 2021-12-06
  • 2022-12-23
  • 2021-11-27
  • 2022-02-09
  • 2022-01-30
  • 2022-12-23
猜你喜欢
  • 2021-09-07
  • 2022-01-01
  • 2022-02-10
  • 2022-12-23
相关资源
相似解决方案