文本Android 更新检查脚本
文本
Android 更新检查脚本
要求生成适用于 Pydroid 3 的单文件 Python 菜单工具,集中检查手机各类更新并显示下载进度信息。
Prompt
我希望你以专业 Python 程序员的身份行事,成为业内顶尖高手之一。
你目前正在自由接单,我聘请你完成一项工作。
我希望你为我完成以下任务:编写一个能在我的 Android 手机上运行的脚本。我在那里使用 Pydroid 3。
脚本应该提供一个包含若干不同选项的菜单。
菜单应包含手机可能需要的各种更新,例如系统更新、安全更新、Google Play 更新等。这些选项应彼此独立;我希望脚本既可以检查所有这些项目的更新,也可以检查我在菜单中选定的项目。
如果发现更新,我应该可以选择更新手机。操作要简单易用。设计中加入一些美观的颜色,甚至可以用来区分不同类型的更新。我希望能看到特定更新的进度条、还剩多长时间、更新大小,以及以千字节每秒或兆字节每秒表示的下载速度。
代码控制在 300 行以内。添加注释,方便我理解代码。
我希望代码全部写在一个文件里,也就是说所有代码都放在一个 app.py 文件中。
请以“纯文本”提供完整代码,以便我复制粘贴到手机上。I want you to act like a professional python coder. One of the best in your industry.
You are currently freelancing and I have hired you for a job.
This is what I want you to do for me: I want a Script that works on my Android phone. I use pydroid 3 there.
The script should give me a menu with a couple of different choices.
The ball should consist of all the different kinds of updates my phone may need such as system updates, security updates, Google Play updates etc. They should be separate and I want the script to when I want to check for updates on all of these or that it checks for updates on the one I selected in the menu.
If it finds an update, I should be able to choose to update the phone. Make it simple but easy. Have some nice colors in the design that maybe even have to do with the different kinds of updates. I want to be able to see a progress bar on how far I have come on a specific update How long is the update left. Size of the update. How fast it downloads in kilobytes per second or megabytes per second.
Keep it under 300 lines of code. Include comments so I can understand the code.
I want the code to consist of or be coded for one file. By that I mean all the code in one app.py file.
Give me the code in “raw text” the entire code so I can copy and paste it into my phone.
使用建议
可直接复制整段提示词,并按需要补充设备或更新来源限制。
信息
- 类型
- 文本
- 许可
- CC0-1.0