Skip to content

Instantly share code, notes, and snippets.

@BlogBlocks
Last active December 19, 2017 00:33
Show Gist options
  • Select an option

  • Save BlogBlocks/7ced2ac25f4464cde23fa7995b398917 to your computer and use it in GitHub Desktop.

Select an option

Save BlogBlocks/7ced2ac25f4464cde23fa7995b398917 to your computer and use it in GitHub Desktop.
# Arg test:
# python ArgTest.py eweewe erer tytyytt sssss
import sys
import numpy as np
import sys
script = sys.argv[0]
filename = sys.argv[1]
test0 = sys.argv[2]
test1 = sys.argv[3]
test2 = sys.argv[4]
def main():
script = sys.argv[0]
filename = sys.argv[1]
print script , filename, test0, test1, test2
if __name__ == "__main__" :
main()
@BlogBlocks
Copy link
Copy Markdown
Author

made public

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment