简体   繁体   English

在3.3.5更新之后打开.py文件

[英]Opening .py files after the 3.3.5 update

I recently upgraded my Python version to 3.3.5 with much excitement, but after trying to change the default 'open with' program to the new Python IDLE, I got lost. 我最近很兴奋地将我的Python版本升级到3.3.5,但是在尝试将默认的“打开方式”程序更改为新的Python IDLE之后,我迷路了。

I tried un-installing Python 3.3.2 in hope of causing less confusion, but I still can't tell what I need to open .py files with! 我尝试卸载Python 3.3.2,以希望减少混乱,但是我仍然无法确定打开.py文件的必要条件!

I can run the programs, I set the default 'open with' program to C:\\Python335\\pyhton.exe but in doing that I lose my right click menu "Edit in IDLE" option, and also right clicking on my Python 3.3.5 shortcut and clicking on recent items does not open anything. 我可以运行这些程序,将默认的“打开方式”程序设置为C:\\ Python335 \\ pyhton.exe,但是这样做会丢失右键菜单“在IDLE中编辑”选项,并且右键单击Python 3.3。 5快捷方式并单击最新项目不会打开任何内容。

在此处输入图片说明

Clicking any of these files did nothing. 单击任何这些文件没有任何作用。 Prior to me messing around, it would have opened the file in IDLE 在弄乱我之前,它会在IDLE中打开文件

在此处输入图片说明

Opening it still does the same thing, running the program in the cmd, but I lack the right click edit function. 在cmd中运行该程序,仍然可以打开它,但是我缺少右键单击编辑功能。

What is the default 'open with' program for .py files? .py文件的默认“打开方式”程序是什么? Also 3.3.5 still has the right click edit function right? 3.3.5还具有右键单击编辑功能吗?

Edit: This is what it looks like currently: 编辑:这是当前的样子:

在此处输入图片说明

What should it say instead? 应该怎么说呢? Or is this what it is meant to say? 还是这是要说的意思?

Make sure you activate the "Register Extensions" option when installing Python. 确保在安装Python时激活“注册扩展”选项。 The options screen looks like this: 选项屏幕如下所示:

Python安装程序屏幕截图

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

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