Created
January 3, 2018 10:09
-
-
Save zhangchunlin/88e73d090cba71a0e5d3ebfe41e7fb8c to your computer and use it in GitHub Desktop.
python command line file template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
def main(): | |
pass | |
if __name__=='__main__': | |
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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