Skip to content

Instantly share code, notes, and snippets.

@hashihei
Created February 11, 2020 03:54
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 hashihei/68bfff776c7173046bc6205de71a18e8 to your computer and use it in GitHub Desktop.
Save hashihei/68bfff776c7173046bc6205de71a18e8 to your computer and use it in GitHub Desktop.
import sys
import numpy as np
def numPrint(num):
print("numprint:" + str(num))
if __name__ == '__main__':
args = sys.argv
if len(args) == 2 and args[1].isdigit():
for i in np.arange(1,int(args[1])):
numPrint(i)
else:
print('this program require 1 argument.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment