1.New 一个 Preferences->Pydev->Templates->new 2.如下图编辑一下 # coding=utf-8 #!/usr/bin/python 3.创建选择我们定义的 4.效果