首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

win IDLE上怎么执行带参数的python脚本

2013-09-11 
win IDLE上如何执行带参数的python脚本。。。。lijy-test/test# python hardway_exe2.py 1st 2nd 3rd*********

win IDLE上如何执行带参数的python脚本
。。。。lijy-test/test# python hardway_exe2.py 1st 2nd 3rd
**************************************************
The script is called: hardway_exe2.py
your first variable is: 1st
your second variable is : 2nd
your third variable is: 3rd[/code]
这个在linux下没问题
可是到了win idle下只能按F5执行吗?我后面的参数1st 2nd 3rd 咋输入呢?有没有解决办法?
[解决办法]
windows有样东西叫DOS
[解决办法]

引用:
这难道是idle的缺点?这样的官方idle咋能满足学习需求呀

所以我才写了教程,让你
不要用idle开发,而是用windows的cmd。
详见:
python初级教程:入门详解
中的:
【整理】【多图详解】如何在Windows下开发Python:在cmd下运行Python脚本+如何使用Python Shell(command line模式和GUI模式)+如何使用Python IDE

热点排行