Windows7中双击py文件运行程序
来源:互联网 发布:软件生成周期模型 编辑:程序博客网 时间:2024/06/05 00:44
最近看了一本python方面的教材,洋洋洒洒写了好几页,也没将要点讲到,我现将在Window7下,双击py文件运行程序的方法总结如下:
方法
将该文件的Properties设置为如下:
注意:别忘了在py文件中的最后加入input(“Enter the any press to exit” )这行代码。这种方法仅仅限于在Windows系统下使用,方便查看自己的运行结果。
举例
比如,我写了如下代码:
# Instructions# Demonstraction programmer - created functionsdef instructions(): """Display game instructions""" print( """ Welcome to the greatest intellectual challenge of all time: Tic-Tac-Toe. This will be a showdown between your human brain and my sillicon processor. You will make you move known by entering a number, 0-8. The number will correspond to the board position as illustrated: 0 | 1 | 2 --------- 3 | 4 | 5 --------- 6 | 7 | 8 Prepare your self, human. The ultimate battle is about to begin.\n""" )# mainprint("Here are the instructions to the Tic-Tac-Toe:")instructions()input("\n\nPress the enter key to exit.")
双击该文件后,出现界面如下:
1 0
- Windows7中双击py文件运行程序
- Windows系统中双击.py文件可以直接运行
- python3.3 双击py文件不能运行
- python 访问文件中所有py文件,双击listbox中文件名字能运行
- 双击jar文件运行程序
- 双击jar文件运行程序
- 双击jar文件运行程序
- windows7下双击jar文件运行的设置方法
- 在cpython中运行py文件
- 如何在 IDLE 中运行 py 文件
- 在cmd中运行.py文件: python
- 在cmd中运行.py文件
- 双击运行JAVA程序
- 双击运行Java程序
- jar 文件双击运行
- 直接运行py文件
- py学习之路2-通过文件运行程序
- 在servlet中运行调用py程序不成功问题
- Codeforces Round #340 (Div. 2) 617D Polyline(暴力)
- java查找目标字符串在原字符串中出现的次数
- js 数组对象的深浅拷贝
- SharePoint2016 New Feature (Preview) - 弃用功能
- HDU 1728 逃离迷宫【bfs】
- Windows7中双击py文件运行程序
- UIColor+BeeExtension
- Spring技术内幕之Spring Data JPA-查询方式
- java异常及处理
- HDU 1297:Children’s Queue
- 在 vps 安装 Ghost 博客系统记录
- UIView的layoutSubviews和drawRect方法何时调用
- UWP开发笔记——嵌套式页面的实现
- 逗逼的生活