2024-04-19 05:14:19 发布
网友
@Ramiz Uddin's answer绝对值得更多关注:
cmd /K python "$(FULL_CURRENT_PATH)"
打开记事本++。在菜单上转到:运行->;运行。。(五楼)。键入:
C:\Python26\python.exe "$(FULL_CURRENT_PATH)"
现在,不要按run,而是按save为它创建快捷方式。
注释
Python31
Python26
-i
使用运行Python脚本的批处理脚本,然后从Notepad++创建该脚本的快捷方式。
如前所述:http://it-ride.blogspot.com/2009/08/notepad-and-python.html
The code opens “HKEY_CURRENT_USER\Software\Python\PythonCore”, if the key exists it will get the path from the first child key of this key.
检查此密钥是否存在,如果不存在,则可以尝试创建它。
以下是对我有用的:
打开记事本+,然后按F5。你会看到一个弹出框:
Type: C:\Python27\python.exe -i "$(FULL_CURRENT_PATH)" for Python 2.7.and then Save As..., and pick your own key combo to start it each time you want to run something
Type: C:\Python27\python.exe -i "$(FULL_CURRENT_PATH)" for Python 2.7.
and then Save As..., and pick your own key combo to start it each time you want to run something
@Ramiz Uddin's answer绝对值得更多关注:
cmd /K python "$(FULL_CURRENT_PATH)"
第一个选项:(最简单,推荐)
打开记事本++。在菜单上转到:运行->;运行。。(五楼)。键入:
现在,不要按run,而是按save为它创建快捷方式。
注释
Python31
,而不是Python26
-i
第二个选项
使用运行Python脚本的批处理脚本,然后从Notepad++创建该脚本的快捷方式。
如前所述:http://it-ride.blogspot.com/2009/08/notepad-and-python.html
第三种选择:(不安全)
检查此密钥是否存在,如果不存在,则可以尝试创建它。
以下是对我有用的:
打开记事本+,然后按F5。你会看到一个弹出框:
相关问题 更多 >
编程相关推荐