Windows7中双击py文件运行程序

转摘于博客 https://blog.csdn.net/RobertChenGuangzhi/article/details/50598949

最近看了一本python方面的教材,洋洋洒洒写了好几页,也没将要点讲到,我现将在Window7下,双击py文件运行程序的方法总结如下:

方法

将该文件的Properties设置为如下: 
这里写图片描述 
注意:别忘了在py文件中的最后加入input(“Enter the any press to exit” )这行代码。这种方法仅仅限于在Windows系统下使用,方便查看自己的运行结果。

posted @ 2018-04-26 09:37  lili414  阅读(361)  评论(0编辑  收藏  举报