如何使我的脚本自动运行时,一个USB连接?

2024-05-14 20:55:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我的usb中有以下python文件:

Game.py

我想让它在我插入USB时自动运行。在

我在记事本上写了以下内容:

^{pr2}$

并将其保存为autorun.inf。在

但它不运行,我的电脑显示:

There is a problem with this drive. Scan and fix it now?

怎么了?我该怎么解决这个问题?在

注意:
我正在使用Windows 10。在


Tags: 文件pygameiswiththisusbinf

热门问题