简体   繁体   English

任何人都知道为什么我的文件用 Python.exe 打开?

[英]Anyone knows why does my file opens with Python.exe?

I wanted to have a python script so I could edit it and so but when I named my file as *.py, my file will open by using Python.exe anyone knows why and how to fix it.我想要一个 python 脚本,这样我就可以编辑它,但是当我将我的文件命名为 *.py 时,我的文件将使用 Python.exe 打开,任何人都知道为什么以及如何修复它。

https://i.stack.imgur.com/rr5wi.png https://i.stack.imgur.com/rr5wi.png

It looks something like that, that is the Python.exe icon它看起来像那样,那就是 Python.exe 图标

If you are on Windows:如果您使用的是 Windows:

  • Right click the file, click Open With右键单击文件,单击Open With
  • Click Choose Another app单击Choose Another app
  • Now go to More Apps and select the Code Editor or IDE you want to open your python script with现在转到“ More Apps并选择要打开 Python 脚本的代码编辑器或 IDE
  • Check Always use this app to open .py files and click Ok .选中Always use this app to open .py files并单击Ok

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

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