【问题标题】:Why does running a python script with double click, also launches a terminal in background?为什么双击运行python脚本也会在后台启动终端?
【发布时间】:2021-11-12 21:32:14
【问题描述】:

我刚写完脚本,第一次用 tkinter 制作图形界面。当我通过双击文件(我在 W10 上)运行脚本时,图形界面运行,但我也有一个在后台打开的终端,我不知道为什么?有没有办法去掉?

【问题讨论】:

    标签: python python-3.x windows


    【解决方案1】:

    只需将文件结尾更改为 .pyw

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-06-16
    • 2016-07-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-19
    • 2021-12-18
    • 2014-07-29
    相关资源
    最近更新 更多