Skip to content

Instantly share code, notes, and snippets.

@1c7
Created December 28, 2013 05:29
Show Gist options
  • Save 1c7/8156368 to your computer and use it in GitHub Desktop.
Save 1c7/8156368 to your computer and use it in GitHub Desktop.
传入多个参数时, 把多个参数都输出. 传1个参数时什么都不做.
import sys
if len(sys.argv) > 2:
for x in sys.argv[1:]:
print (x)
input()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment