简体   繁体   中英

How to create a powershell shortcut for my python file

我刚刚开始使用 Python,我试图找到一种方法来在我的开始菜单或任务栏上获得一个快捷方式,我可以点击它,它会导致命令提示符或 PowerShell 启动我的 Python 文件

转到快捷方式属性并在目标后添加:

/K python [path\to\your_script.py]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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