Pycharm设置默认解释器路径和编码格式

1.file--->settings:

2.搜索temlates,点击File and Code Templates,点击右侧的Python Script ,在右侧输入,在右下角点击应用,确定。

#!/usr/bin/env python
#-*- coding:utf-8 -*-

3.以后每次在pycharm新建python文件就会自动生成这两行啦。

猜你喜欢

转载自blog.csdn.net/lincoco49/article/details/89311355