将Python脚本放入一个易于打开的文件中

发布于 2025-02-05 12:37:50 字数 262 浏览 3 评论 0原文

我编写了一个Python脚本,该脚本生成一个包含用户联系信息的QR码,现在我找不到将其交付给用户的可靠方法。这是针对一群没有编程知识的人的,因此我需要使它变得非常简单。我使用tkinter制作一个窗口,用户可以在其中输入其数据,然后在其下载文件夹中生成QR码。

我的第一个想法是使用Auto-py-to-exe制作.EXE文件,该文件在我的机器上起作用,但由于某种奇怪的原因没有对其他人工作(他们根本无法打开它,甚至没有对话盒子似乎给出了原因)。

我在这里没有想法,向所有建议开放。

I wrote a Python script that generates a QR Code containing the user's contact information, and now I can't find a solid way to deliver it to the users. This is made for a group of people with no programming knowledge, so I need to make it very simple. I used tkinter to make a window in which the user can input their data, and then the QR code is generated in their Downloads folder.

My first thought was to make a .exe file using auto-py-to-exe, which worked on my machine, but didn't work on someone else's for some strange reason (they simply couldn't open it, not even a dialogue box appeared giving a reason why).

I'm running out of ideas here, open to any and all suggestions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒儿 2025-02-12 12:37:50

您可以执行一个简单的简化应用程序。

如果您的代码可以公开,则可以将其推向GitHub并从那里部署。它是免费的,应该直截了当。

You could do a simple streamlit app.

If your code can be public, you can push it to github and deploy it from there. It's free and should be straight forward.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文