Created
April 26, 2017 08:44
-
-
Save Xvezda/681cad385a05636ee564f4f2d129ebde to your computer and use it in GitHub Desktop.
how to argc(v) in python :)
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 | |
# -*- coding: utf-8 -*- | |
import sys | |
def main(argc, argv): | |
print 'argc:', argc | |
print 'argv:', argv | |
if __name__ == '__main__': | |
main(len(sys.argv), sys.argv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment