上下文菜单“用 IDLE 打开”对于 Python .py 文件来说,被吹走了

发布于 2024-10-02 10:59:42 字数 63 浏览 0 评论 0原文

不知怎的,设法把它吹走,不知道如何把它找回来 尝试卸载并重新安装 Python 3,但没有成功。 有什么想法吗?

Somehow managed to blow this away, and can't figure out how to get it back
Tried un- and re-installing Python 3, but that didn't do it.
Any ideas??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

薄荷→糖丶微凉 2024-10-09 10:59:42

默认情况下,python 安装将对 .py 文件的操作设置为“打开”和“空闲编辑”。

这些设置存储在 Windows 注册表中的 HKEY_CLASSES_ROOT\.py 中。

如果您更改了这些设置(无论是否有误),Windows 将使用您的新设置在注册表中创建一个新条目。此条目位于

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py

此新条目将覆盖默认行为。

因此,要恢复默认行为,只需删除该条目

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py

警告:您可能知道,弄乱注册表对于您的 Windows 配置来说是危险的。请务必小心操作,不要删除或更改注册表中的任何内容,否则可能导致 Windows 无法使用

By default the python installation setup the actions on a .py file to be "Open" and "Edit with Idle".

Those settings are stored in the Windows registry in HKEY_CLASSES_ROOT\.py

If you change those settings (by error or not), windows shall create a new entry in the registry with your new settings. This entry is located in

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py

This new entry overrides the default behaviour.

So to restore the default behaviour just delete the entry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py

WARNING: As you probably know, messing with the registry is dangerous for your Windows configuration. Be sure to act carefully and don't delete or change anything in the registry that could make Windows unusable

巾帼英雄 2024-10-09 10:59:42

假设这里使用的操作系统是Windows,您可以右键单击并通过菜单中的“打开方式”选项选择idle作为默认程序吗?

因为我完全讨厌使用 IDLE,所以我总是向使用 IDLE 的人推荐 eclipse 和 pydev。 Eclipse 和 pydev 让编码变得更加有趣。

我在这里使用除 ANT 部分之外的所有内容。

http://www.ibm.com/developerworks/opensource/library/os-转出/

Assuming Windows is the OS in use here, could you just right click and choose idle as the default program via the "open with" option in the menu?

And because I totally hated using IDLE I always recommend eclipse and pydev to people who are using IDLE. Eclipse and pydev making coding a lot more fun.

I use everything here except the ANT part.

http://www.ibm.com/developerworks/opensource/library/os-ecant/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文