1. 程式人生 > >Windows7中雙擊py文件運行程序

Windows7中雙擊py文件運行程序

log csdn 分享圖片 NPU The 自己 itl AR 總結

轉摘於博客 https://blog.csdn.net/RobertChenGuangzhi/article/details/50598949

最近看了一本python方面的教材,洋洋灑灑寫了好幾頁,也沒將要點講到,我現將在Window7下,雙擊py文件運行程序的方法總結如下:

方法

將該文件的Properties設置為如下:
技術分享圖片
註意:別忘了在py文件中的最後加入input(“Enter the any press to exit” )這行代碼。這種方法僅僅限於在Windows系統下使用,方便查看自己的運行結果。

Windows7中雙擊py文件運行程序