在cmd中运行.py文件: python的操作步骤
作者:哈嘿哈嘿搬砖喽 时间:2021-10-01 08:40:47
1 打开cmd,
不改变运行的目录:
输入python 空格 调试好的python文件路径
或者python 空格 将python文件拖入cmd中
2 打开cmd
输入要改变的路径盘 比如:E: (回车键)
输入路径languang\sublime\pythonTest.py
回车运行
来源:https://blog.csdn.net/yanhuatangtang/article/details/75087522
标签:python,py,cmd
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
pycharm 2020 1.1的安装流程
2022-01-01 22:21:41
![](https://img.aspxhome.com/file/2023/5/109345_0s.jpg)
Oracle PL/SQL语言入门基础
2010-07-20 13:28:00
浅谈Pandas 排序之后索引的问题
2022-03-18 12:28:32
表单验证中时间起止判断的递归处理
2009-12-16 19:27:00
python实现的config文件读写功能示例
2021-10-11 07:28:04
困惹的A标签
2007-12-04 12:36:00
![](https://img.aspxhome.com/file/UploadPic/200712/4/2007124125051635s.png)
python 字典常用方法超详细梳理总结
2023-06-29 05:48:40
分享十款最出色的PHP安全开发库中文详细介绍
2023-06-15 01:04:59
![](https://img.aspxhome.com/file/2023/1/55491_0s.jpg)
对Python实现简单的API接口实例讲解
2023-11-20 03:27:04
![](https://img.aspxhome.com/file/2023/3/90663_0s.jpg)
Dreamweaver制作技巧四则
2008-01-04 09:42:00
Python采用raw_input读取输入值的方法
2021-09-08 03:19:05
Python3+RIDE+RobotFramework自动化测试框架搭建过程详解
2022-04-15 00:01:01
![](https://img.aspxhome.com/file/2023/0/100980_0s.png)
python3.7调试的实例方法
2022-09-22 17:16:24
![](https://img.aspxhome.com/file/2023/8/82758_0s.png)
解决MySQL 5数据库连接超时问题
2009-03-25 15:24:00
Python装饰器的定义和使用详情
2021-01-26 23:22:15
Python3 requests模块如何模仿浏览器及代理
2023-04-05 06:50:44
![](https://img.aspxhome.com/file/2023/8/105788_0s.png)
Python flask框架端口失效解决方案
2021-02-19 23:48:46
![](https://img.aspxhome.com/file/2023/5/89275_0s.png)
python中的None与NULL用法说明
2022-01-01 13:59:15
详解Python中__str__和__repr__方法的区别
2023-02-28 17:29:17
js实现input+select组合 抛砖引玉
2010-08-02 12:34:00