每次我写一个新的
python程序,我发现自己一遍又一遍地写相同的初始行:
#!/usr/bin/env python ''' Description of the program ''' import always,the,same,libraries def helper_function(helpers_args): ''' A function that is called in get_main_output,but that someone might want to import too. ''' continue def get_main_output(program_arguments): ''' Description of the main function ''' continue if __name__ == '__main__': output = get_main_output(sys.argv)
我不想每次都手工完成.我希望每次打开扩展名为.py的不存在的文件时,vim都会向我显示此文件,以便我可以根据需要对其进行修改,然后将其保存到新创建的源文件中.
我怎样才能做到这一点?
如果答案已经在某处,请道歉.我以为会是,但我无法在任何地方找到它.
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。