如何在 PyCharm 中设置 Python 代码模板

设置 File > Settings > File and Code Template > Python Script

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by iFantastic on $DATE



if __name__ == '__main__':
    pass

 

使用模板时,$DATE 会自动替换为当前日期。

posted @ 2014-04-16 19:07  iFantasticMe  阅读(7834)  评论(3)    收藏  举报