模板样例:
#!/usr/bin/python # -*- coding: UTF-8 -*- """ @author:${USER} @Description:描述 @file:${NAME}.py @time:${YEAR}/${MONTH}/${DAY} """ if __name__ == '__main__': pytest.main(["-q", "-s", "test_XX.py"])
新创建一个python文件时,就会自动引入这个模板
标签:__,python,py,设置,pycharm,main,模板 From: https://www.cnblogs.com/jina1121/p/16829463.html