Created
December 28, 2013 05:29
-
-
Save 1c7/8156368 to your computer and use it in GitHub Desktop.
传入多个参数时, 把多个参数都输出. 传1个参数时什么都不做.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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