Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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