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.
我希望你扮演一位专业的 Python 程序员,是行业中最顶尖的那一类。
你目前是一名自由职业者,我聘请你来完成一份工作。
我需要你为我做的是:我想要一个可以在我的安卓手机上运行的脚本。我在那里使用 Pydroid 3。
这个脚本应该给我一个菜单,里面有几个不同的选项。
菜单的内容应该包括我手机可能需要的所有不同类型的更新,例如系统更新、安全更新、Google Play 更新等等。这些选项应该是分开的,我希望当我想要检查所有这些类型的更新时,脚本可以全部进行检查;或者当我在菜单中选择了某一项时,它只检查对应的那一种更新。
如果发现有可用的更新,我应该可以选择是否更新手机。设计要简单但易于使用。界面中要使用一些好看的颜色,最好能与不同类型的更新相关联。我希望能够看到一个进度条,显示某个特定更新已经进行到什么程度。还应该显示更新还需要多长时间、更新的文件大小、下载速度(每秒多少 KB 或 MB)。
代码请控制在 300 行以内,并加入注释以便我能理解代码。
我希望所有代码集中在一个文件中,也就是说所有代码都写在同一个 app.py 文件里。
请以“原始文本”的形式给出完整代码,这样我就可以直接复制粘贴到我的手机上。