python3.1 XP下的IDLE环境,怎么输入系统sys.argv参数?
时间:2010-12-14
来源:互联网
Python code
书上例子的程序运行结果:
$ python using_sys.py we are arguments
The command line arguments are:
using_sys.py
we
are
arguments
但是,我的总是:
The command line arguments are:
E:\2,Python\using_sys.py
不知道怎么输入 "we are arguments"参数,请大侠们指导下
#!/usr/bin/python # Filename: using_sys.py import sys print ('The command line arguments are:') for i in sys.argv: print (i) print ('\n\nThe PYTHONPATH is', sys.path, '\n')
书上例子的程序运行结果:
$ python using_sys.py we are arguments
The command line arguments are:
using_sys.py
we
are
arguments
但是,我的总是:
The command line arguments are:
E:\2,Python\using_sys.py
不知道怎么输入 "we are arguments"参数,请大侠们指导下
作者: taiyangniao 发布时间: 2010-12-14
把sys.argv打出来看下。
作者: iambic 发布时间: 2010-12-14
在命令行运行:
python using_sys.py we are arguments
python using_sys.py we are arguments
作者: feilniu 发布时间: 2010-12-14
该回复于2010-12-14 14:38:32被管理员删除
- 对我有用[0]
- 丢个板砖[0]
- 引用
- 举报
- 管理
- TOP
|
#4楼 得分:0回复于:2010-12-14 13:41:27
|
作者: iambic 发布时间: 2010-12-14
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28