win IDLE上怎么执行带参数的python脚本
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开发,而是用windows的cmd。
详见:
python初级教程:入门详解
中的:
【整理】【多图详解】如何在Windows下开发Python:在cmd下运行Python脚本+如何使用Python Shell(command line模式和GUI模式)+如何使用Python IDE
。。。。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开发,而是用windows的cmd。
详见:
python初级教程:入门详解
中的:
【整理】【多图详解】如何在Windows下开发Python:在cmd下运行Python脚本+如何使用Python Shell(command line模式和GUI模式)+如何使用Python IDE