简体   繁体   English

Windows命令提示符快捷方式

[英]windows command prompt shortcut

I have just recently started using the Windows Command Prompt in order to do some python development. 我刚刚开始使用Windows命令提示符来进行一些python开发。 I was wondering if there's any way to create some sort of shortcut so that I can just type: "python program.py" rather than "C:\\Python27\\python.exe program.py" 我想知道是否有任何方法可以创建某种快捷方式,以便我只需键入:“python program.py”而不是“C:\\ Python27 \\ python.exe program.py”

You will want to add "C:\\Python27\\" to your Windows PATH variable. 您将要在Windows PATH变量中添加“ C:\\ Python27 \\”。

Here is a web page that illustrates how to do this. 是一个说明如何执行此操作的网页。 (I did not write this webpage.) (我没有写此网页。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM