如下的內容內容是關於python獲取命令列引數的內容,希望能對大家有所好處。
# [SNIPPET_NAME: Command line arguments]
# [SNIPPET_CATEGORIES: Python Core]
# [SNIPPET_DESCRIPTION: Prints each command line argument per line]
# [SNIPPET_AUTHOR: Tiago Boldt Sousa <tiagoboldt@gmail.com>]
# [SNIPPET_LICENSE: GPL]
import sys
for x in sys.argv:
print x