简体   繁体   English

如何在Windows 8中打开PYW文件

[英]How to open PYW files in Windows 8

Someone gave me a python file to open and use as a resource. 有人给我一个python文件打开并用作资源。 The only issue is I don't know anything about python, it's very different from my basic knowledge of coding. 唯一的问题是我对python一无所知,这与我的编码基础知识有很大不同。

The file is not a normal .py file, but rather a console-less .pyw file. 该文件不是普通的.py文件,而是无控制台的.pyw文件。 I have imported the newest version of python and installed PySide, but I have had no successful attempts at opening the file. 我已经导入了最新版本的python并安装了PySide,但是我没有成功尝试打开该文件。

I was wondering if someone might know how to open this kind of file? 我想知道是否有人会知道如何打开这种文件? Does it need to be somewhere specific? 是否需要特定的地方?

Right-click the file, click properties, under general it says "opens with:"... Click the "Change" button to the right of that, and then click more options. 右键单击该文件,单击属性,在常规下显示“打开方式:”...。单击该文件右侧的“更改”按钮,然后单击更多选项。 On that menu there should be an option called "pythonw" click that. 在该菜单上,应该有一个名为“ pythonw”的选项,然后单击该选项。 Then on the bottom-right click "apply", then "OK". 然后在右下角单击“应用”,然后单击“确定”。 Then just double-click on the file and it should run with no console window so you won't be able to see it running. 然后只需双击该文件,该文件应在没有控制台窗口的情况下运行,因此您将无法看到它的运行情况。

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

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