9 Nov 2010

python运行脚本的批处理bat文件


python脚本的运行可以直接双击py文件,但是窗口会一闪而过,如果用idel打开,又是2个窗口,一个源文件,一个shell,如果想在命令行看效果,可以写一个简单的批处理文件调用py脚本,具体如下:

cmd /c C:\Python26\python.exe "test.py" && pause

2 comments :

  1. I have read your blog its very attractive and impressive. I like your blog.selenium Online Training

    ReplyDelete
  2. Your very own commitment to getting the message throughout came to be rather powerful and have consistently enabled employees just like me to arrive at their desired goals.
    Selenium Training in chennai | Selenium Training in anna nagar | Selenium Training in omr | Selenium Training in porur | Selenium Training in tambaram | Selenium Training in velachery

    ReplyDelete