pycharm设置模板文件
在pycharm上依次选择打开 File->settings->Editor->File andCode Templates->Python Scriptpython2.X版本中需要设置编码格式为utf-8#!/usr/bin/env python# encoding: utf-8"""@author: roc@
·
在pycharm上依次选择打开 File->settings->Editor->File andCode Templates->Python Script
python2.X版本中需要设置编码格式为utf-8
#!/usr/bin/env python
# encoding: utf-8
"""
@author: roc
@contact: roc@csdn.com
@software: ${PRODUCT_NAME}
@file: ${NAME}.py
@create: ${DATE} ${TIME}
"""
或者
# -*- coding: utf-8 -*-
"""
@author: roc
@contact: roc@csdn.com
@software: ${PRODUCT_NAME}
@file: ${NAME}.py
@create: ${DATE} ${TIME}
@Project : ${PROJECT_NAME}
"""
- def func():
- pass
- class main():
- def __init__(self):
- pass
- if __name__ == "__main__":
- pass
更多推荐
已为社区贡献2条内容
所有评论(0)