分类: Python/Ruby
2015-09-09 16:35:47
#!/usr/bin/python
#filename:using_sys.py
import sys
print 'the command line arguments are:'
for i in sys.argv:
print i
print '\n\n The PYTHONPATH is\n',sys.path,'\n'
[root@fsailing1 python]# python using_sys.py we are studying python
the command line arguments are:
using_sys.py
we
are
studying
python