Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import sys
def fun():
print 'fun'
def test():
print 'test'
if __name__ == "__main__":
if len(sys.argv) > 1 and sys.argv[1] == 'test':
test()
else:
fun()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.