Skip to content

Instantly share code, notes, and snippets.

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])):
print('this program require 1 argument.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment