{"id":17367,"date":"2023-12-18T11:16:35","date_gmt":"2023-12-18T03:16:35","guid":{"rendered":"https:\/\/www.zhidianwl.com\/zhidian\/?p=17367"},"modified":"2023-12-18T11:16:35","modified_gmt":"2023-12-18T03:16:35","slug":"python%e5%bc%80%e5%8f%91%e5%ae%89%e5%8d%93app%e6%80%8e%e4%b9%88%e6%a0%b7%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.zhidianwl.com\/zhidian\/2023\/17367\/","title":{"rendered":"python\u5f00\u53d1\u5b89\u5353app\u600e\u4e48\u6837\uff1f"},"content":{"rendered":"

Python\u662f\u4e00\u95e8\u7b80\u5355\u6613\u5b66\u7684\u8bed\u8a00\uff0c\u5f00\u53d1\u5b89\u5353app\u53ef\u4ee5\u4f7f\u7528\u5b83\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u65b9\u6cd5\uff1a<\/p>\n

1. \u4f7f\u7528Kivy\u5f00\u53d1\u5b89\u5353app<\/p>\n

Kivy\u662f\u7528Python\u5f00\u53d1\u7684\u5f00\u6e90\u6846\u67b6\uff0c\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u8de8\u5e73\u53f0\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u652f\u6301\u591a\u79cd\u8f93\u5165\u65b9\u5f0f\uff0c\u5305\u62ec\u89e6\u6478\u5c4f\uff0c\u9f20\u6807\u548c\u952e\u76d8\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5185\u7f6e\u7684\u5c0f\u90e8\u4ef6\u548c\u5e03\u5c40\uff0c\u652f\u6301OpenGL ES <\/p>\n

<\/figure>\n<\/p>\n

2\uff0c\u53ef\u4ee5\u521b\u5efa\u51fa\u89c6\u89c9\u6548\u679c\u4e30\u5bcc\u7684\u7528\u6237\u754c\u9762\u3002\u901a\u8fc7Kivy\uff0c\u53ef\u4ee5\u7528Python\u5f00\u53d1\u51fa\u5b89\u5353\u3001iOS\u3001Windows\u3001Linux\u7b49\u5e73\u53f0\u7684app\u3002Kivy\u63d0\u4f9b\u4e86\u5f88\u591a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u5982Kivy Designer\u548cBuildozer\uff0c\u7528\u6765\u8bbe\u8ba1\u548c\u6253\u5305app\u3002\u5b66\u4e60Kivy\u9700\u8981\u4e00\u5b9a\u7684Python\u57fa\u7840\u548cOOP\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u3002<\/p>\n

2. \u4f7f\u7528Python-for-android\u5b89\u5353app\u5f00\u53d1\u5de5\u5177<\/a>\u6253\u5305\u5b89\u5353app<\/p>\n

Python-for-android\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5de5\u5177\uff0c\u7528\u6765\u5c06Pyth\u5b89\u5353app\u5236\u4f5c<\/a>on\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210Android APK\u6587\u4ef6\u3002\u5b83\u4f7f\u7528Python\u7684distutils\u6253\u5305\u5e94\u7528\u7a0b\u5e8f\uff0c\u5c06\u7a0b\u5e8f\u6240\u9700\u7684Python\u89e3\u91ca\u5668\u548c\u5e93\u6253\u5305\u8fdbAPK\u6587\u4ef6\u4e2d\uff0c\u5e76\u7f16\u8bd1\u6210Dalvik\u5b57\u8282\u7801\u3002Python-for-android\u53ef\u4ee5\u8ba9\u4f60\u5728\u4e0d\u540c\u7684Android\u67b6\u6784\u4e0a\u6784\u5efaAPK\u6587\u4ef6\uff0c\u5e76\u4e14\u80fd\u591f\u4f7f\u7528Java\u4ee3\u7801\u6269\u5c55Python\u90e8\u5206\u3002Python\u57fa\u7840\u77e5\u8bc6\u548cAndroid SDK\u662f\u5fc5\u9700\u7684\u3002<\/p>\n

3. \u4f7f\u7528Chaquopy\u5c06Python\u4ee3\u7801\u5d4c\u5165\u5b89\u5353app<\/p>\n

Chaquopy\u662f\u4e00\u4e2a\u5546\u4e1a\u5e93\uff0c\u53ef\u4ee5\u5c06Python\u4ee3\u7801\u5d4c\u5165\u5230\u5b89\u5353app\u4e2d\u3002\u5b83\u5728\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5d4c\u5165\u4e86\u4e00\u4e2aPython\u89e3\u91ca\u5668\uff0c\u652f\u6301\u672c\u5730\u5e93\u548cC\u6269\u5c55\uff0c\u4f7f\u5f97Python\u4ee3\u7801\u80fd\u591f\u4e0eJava\u4ee3\u7801\u76f8\u4e92\u8c03\u7528\u3002Chaquopy\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u4e0d\u9700\u8981\u5b66\u4e60\u989d\u5916\u7684\u6846\u67b6\u548c\u5de5\u5177\uff0c\u800c\u4e14\u53ef\u4ee5\u4f7f\u7528Python\u6807\u51c6\u5e93\u548c\u7b2c\u4e09\u65b9\u5e93\uff0c\u8282\u7ea6\u65f6\u95f4\u548c\u5de5\u4f5c\u91cf\u3002\u5b66\u4e60Python\u548cJava\u7f16\u7a0b\u548cAndroid\u5f00\u53d1\u662f\u5fc5\u9700\u7684\u3002<\/p>\n

\u8fd9\u4e9b\u90fd\u662f\u4f7f\u7528Python\u6765\u5f00\u53d1\u5b89\u5353app\u7684\u65b9\u6cd5\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5404\u81ea\u7684\u4f18\u52bf\u548c\u9650\u5236\u3002\u9009\u62e9\u54ea\u4e2a\u65b9\u6cd5\u53d6\u51b3\u4e8e\u4f60\u7684\u5177\u4f53\u9700\u6c42\uff0c\u5982\u679c\u9700\u8981\u521b\u5efa\u4e30\u5bcc\u7684\u56fe\u5f62\u5316\u7528\u6237\u754c\u9762\uff0c\u53ef\u4ee5\u9009\u62e9Kivy\uff1b\u5982\u679c\u9700\u8981\u9ad8\u5ea6\u5b9a\u5236\u5316\u6216\u590d\u6742\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u53ef\u4ee5\u9009\u62e9Python-for-android\u6216Chaquopy\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Python\u662f\u4e00\u95e8\u7b80\u5355\u6613\u5b66\u7684\u8bed\u8a00\uff0c\u5f00\u53d1\u5b89\u5353app\u53ef\u4ee5\u4f7f\u7528\u5b83\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u65b9\u6cd5\uff1a1. \u4f7f\u7528Kivy\u5f00\u53d1\u5b89\u5353appKivy\u662f\u7528Python\u5f00\u53d1\u7684\u5f00\u6e90\u6846\u67b6\uff0c\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u8de8\u5e73\u53f0\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u652f\u6301\u591a\u79cd\u8f93\u5165\u65b9\u5f0f\uff0c<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,23624,23625,14,72],"class_list":{"0":"post-17367","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-zuoapp","7":"tag-81","8":"tag-app","10":"tag-14","11":"tag-72"},"_links":{"self":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/17367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/comments?post=17367"}],"version-history":[{"count":1,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/17367\/revisions"}],"predecessor-version":[{"id":17393,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/17367\/revisions\/17393"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/media?parent=17367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/categories?post=17367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/tags?post=17367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}