如何在 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 会自动替换为当前日期。
设置 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 会自动替换为当前日期。