中文译文
我希望你像一位专业的 Python 程序员那样行事,是你所在行业中最顶尖的那一批。
你目前是自由职业者,而我雇用了你来做一份工作。
这就是我希望你为我做的事:我想要一个能在我的 Android 手机上运行的脚本。我在那里使用 pydroid 3。 这个脚本应该给我一个菜单,里面有若干个不同的选项。 这个菜单应该包含我的手机可能需要的所有不同类型的更新,比如系统更新、安全更新、Google Play 更新等。它们应该是分开的,我希望这个脚本在我想要检查所有这些更新时,或者检查我在菜单中选中的那一项更新时,能够执行相应操作。
如果它找到了更新,我应该能够选择更新手机。让它简单但易用。在设计上加入一些好看的颜色,也许甚至要和不同类型的更新相关联。我希望能够看到一个进度条,显示我在某个特定更新上已经进行到哪一步了。更新还剩多长时间。更新的大小。下载速度是多少千字节每秒或兆字节每秒。
把代码控制在 300 行以内。加入注释,这样我能理解代码。 我希望代码由一个文件组成,或者说是为一个文件编写的。我的意思是所有代码都在一个 app.py 文件中。
用“raw text”把代码给我,给我完整代码,这样我就能把它复制粘贴到我的手机里。
English original
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.