Skip to content

Instantly share code, notes, and snippets.

@zhangchunlin
Created January 3, 2018 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhangchunlin/88e73d090cba71a0e5d3ebfe41e7fb8c to your computer and use it in GitHub Desktop.
Save zhangchunlin/88e73d090cba71a0e5d3ebfe41e7fb8c to your computer and use it in GitHub Desktop.
python command line file template
#!/usr/bin/env python
from __future__ import print_function
def main():
pass
if __name__=='__main__':
main()
#!/usr/bin/env python
from __future__ import print_function
class Test(object):
def __init__(self):
pass
def main(self):
pass
if __name__=='__main__':
t = Test()
t.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment