fork download
  1. 'a test module'
  2. __author__='Michael Liao'
  3.  
  4. import sys
  5.  
  6. def test():
  7. args=sys.argv
  8. if len(args)==1:
  9. print('Hello World')
  10. elif len(args)==2:
  11. print('Hello,%s!'% args[1])
  12. else:
  13. print('too many arguments')
  14. if __name__=='__main__':
  15. test()
  16. # your code goes here
  17. # your code goes here
  18. # your code goes here
  19. # your code goes here
  20. # your code goes here
  21. # your code goes here
Success #stdin #stdout 0.08s 14104KB
stdin
Standard input is empty
stdout
Hello World