Skip to content

Commit a7f35b2

Browse files
committed
更新设置Pycharm文件模板
1 parent 533f69d commit a7f35b2

1 file changed

Lines changed: 24 additions & 6 deletions

File tree

Pycharm.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,34 @@
77
File -->> setting -->> File Encodings -->> IDE encoding:utf-8
88
```
99

10-
2、设置模板文件编码类型
10+
2、设置Pycharm文件模板
1111
```
12-
File -->> Setting -->> File and Code Templates
12+
File -->> Setting -->> Editor -->> File and Code Templates -->> Python Script
1313
```
1414

1515
在模块里顶部加入下面语句
16-
```
17-
#!/usr/bin/env python
18-
# coding=utf-8
19-
```
16+
17+
#!/usr/bin/env python
18+
# encoding: utf-8
19+
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+
pass
34+
35+
36+
if __name__ == '__main__':
37+
pass
2038

2139

2240

0 commit comments

Comments
 (0)