We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 533f69d commit a7f35b2Copy full SHA for a7f35b2
1 file changed
Pycharm.md
@@ -7,16 +7,34 @@
7
File -->> setting -->> File Encodings -->> IDE encoding:utf-8
8
```
9
10
-2、设置模板文件编码类型:
+2、设置Pycharm文件模板:
11
12
-File -->> Setting -->> File and Code Templates
+File -->> Setting -->> Editor -->> File and Code Templates -->> Python Script
13
14
15
在模块里顶部加入下面语句
16
-```
17
-#!/usr/bin/env python
18
-# coding=utf-8
19
+
+ #!/usr/bin/env python
+ # encoding: utf-8
20
+ """
21
+ @author: ${USER}
22
+ @software: ${PRODUCT_NAME}
23
+ @file: ${NAME}.py
24
+ @time: ${DATE} ${TIME}
25
26
27
+ def func():
28
+ pass
29
30
31
+ class Main(object):
32
+ def __init__(self):
33
34
35
36
+ if __name__ == '__main__':
37
38
39
40
0 commit comments