1. 程式人生 > >Pycharm設定utf-8自動顯示

Pycharm設定utf-8自動顯示

File->Setting->Editor->File and Code Templates->python script,右側框框內輸入: # -*- coding:utf-8 -*-  ,然後重新啟動Pycharm,這樣每個新建的Python檔案行首都會顯示 # -*- coding:utf-8 -*-