菜鸟的烦恼

在《简明python教程》看到如下代码,就照着敲了一遍,结果却不对

# !/usr/bin/python

#Filename:using_sys.py

import sys

print 'The command line arguments are:'

for i in sys.argv:

    print i

我的结果        The command line arguments are:

                        C:/Users/hp/Desktop/using_sys.py

书上的结果    The command line arguments are:

                        using_sys.py

                        we

                        are

                        arguments

最后的三行的“we”、 “ are” 、“arguments”是怎么用命令行读进去的啊??

你可能感兴趣的:(职场,菜鸟,休闲)