第一步:打开 File -> Settings 第二步: Editor->FileEncodings 页面 Encoding 相关的都改成UTF-8,OK,重启PyCharm即可; so easy!没那么复杂;不知道为啥网上那么多方法没一个能行的;