{"id":17093,"date":"2023-12-15T11:06:36","date_gmt":"2023-12-15T03:06:36","guid":{"rendered":"https:\/\/www.zhidianwl.com\/zhidian\/?p=17093"},"modified":"2023-12-15T11:06:36","modified_gmt":"2023-12-15T03:06:36","slug":"python%e5%ae%89%e5%8d%93app%e5%bc%80%e5%8f%91%e5%b9%b3%e5%8f%b0%e5%8a%9f%e8%83%bd%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.zhidianwl.com\/zhidian\/2023\/17093\/","title":{"rendered":"python\u5b89\u5353app\u5f00\u53d1\u5e73\u53f0\u529f\u80fd\u4ecb\u7ecd"},"content":{"rendered":"

Python \u662f\u4e00\u79cd\u5f00\u6e90\u7684\u9ad8\u7ea7\u7f16\u7a0b\u8bed\u8a00\uff0c\u5176\u8bed\u6cd5\u7b80\u5355\u6613\u5b66\uff0c\u652f\u6301\u8de8\u5e73\u53f0\uff0c\u800c\u4e14\u62e5\u6709\u5927\u91cf\u7684\u7b2c\u4e09\u65b9\u5e93\u3002\u8fd1\u5e74\u6765\uff0cPython \u5728\u79fb\u52a8\u5e94\u7528\u9886\u57df\u4e5f\u9010\u6e10\u5f97\u5230\u4e86\u5e7f\u6cdb\u7684\u5e94\u7528\u3002<\/p>\n

\u5728\u5b89\u5353\u5e73\u53f0\u4e0a\u4f7f\u7528 Python \u8fdb\u884c\u5f00\u53d1\uff0c\u9700\u8981\u501f\u52a9\u4e00\u4e9b\u76f8\u5173\u7684\u5de5\u5177\u548c\u6846\u67b6\u3002\u4e0b\u9762\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e9b\u5e38\u7528\u7684 Python \u5b89\u5353\u5f00\u53d1\u5e73\u53f0\uff1a<\/p>\n

1. Kivy<\/p>\n

Kivy \u662f\u4e00\u4e2a\u5f00\u6e90\u7684 Python \u5e93\uff0c\u7528\u4e8e\u5feb\u901f\u5f00\u53d1\u652f\u6301\u591a\u70b9\u89e6\u63a7\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5305\u62ec\u79fb\u52a8\u8bbe\u5907\u3001\u8ba1\u7b97\u673a\u548c Raspberry Pi \u7b49\u3002Kivy \u5728\u79fb\u52a8\u7aef\u5e94\u7528\u7684\u5f00\u53d1\u4e2d\u5f97\u5230\u4e86\u5b89\u5353app\u5236\u4f5c<\/a>\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u5b83\u4f7f\u7528 OpenGL ES 2 \u6765\u6e32\u67d3\u5e94\u7528\u7a0b\u5e8f\u7684 UI \u548c\u6548\u679c\u3002Kivy \u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u5176\u4ed6\u7684\u529f\u80fd\uff0c\u5982\u52a8\u753b\u3001\u89c6\u9891\u3001\u56fe\u50cf\u548c\u97f3\u9891\u7b49\u3002<\/p>\n

2. BeeWare<\/p>\n

BeeWare \u662f\u4e00\u5957 Python \u5f00\u53d1\u6846\u67b6\uff0c\u5305\u62ec\u901a\u7528\u5de5\u5177\u3001IDE\u3001GUI \u6846\u67b6\u7b49\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u6784\u5efa\u53ef\u8de8\u5e73\u53f0\u7684\u5e94\u7528\u7a0b\u5e8f\u3002BeeWare \u652f\u6301\u5f00\u53d1\u5b89\u5353app<\/a>\u9488\u5bf9\u591a\u5e73\u53f0\u7684 UI \u5e94\u7528\uff0c\u5305\u62eciOS \u548c Android\u3002<\/p>\n

3. Chaquopy<\/p>\n

Chaquopy \u662f\u4e00\u4e2a\u5546<\/p>\n

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

\u4e1a\u5316\u7684 Python \u5b89\u5353\u5f00\u53d1\u5e73\u53f0\uff0c\u91c7\u7528\u4e86 Android Studio+Jinja2 \u7684\u5b9e\u73b0\u65b9\u5f0f\u3002\u5b83\u53ef\u4ee5\u5c06 Python \u4ee3\u7801\u76f4\u63a5\u8f6c\u5316\u4e3a JVM \u5b57\u8282\u7801\uff0c\u5e76\u901a\u8fc7 JNI \u8c03\u7528\u65b9\u5f0f\u4e0e Java \u4ee3\u7801\u4ea4\u4e92\u3002Chaquopy \u8fd8\u63d0\u4f9b\u4e86\u4e13\u4e1a\u7684\u6587\u6863\u548c\u6280\u672f\u54a8\u8be2\u670d\u52a1\u3002<\/p>\n

\u5728\u4f7f\u7528 Python \u5f00\u53d1\u5b89\u5353\u5e94\u7528\u65f6\uff0c\u9700\u8981\u638c\u63e1\u4e00\u4e9b Android \u57fa\u7840\u77e5\u8bc6\u548c\u76f8\u5173\u7684 Python \u5e93\u3002\u540c\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u5728\u79fb\u52a8\u5e94\u7528\u4e2d\u7684\u6027\u80fd\u548c\u8d44\u6e90\u7ba1\u7406\uff0c\u4ee5\u786e\u4fdd\u5e94\u7528\u7684\u8d28\u91cf\u548c\u53ef\u7528\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Python \u662f\u4e00\u79cd\u5f00\u6e90\u7684\u9ad8\u7ea7\u7f16\u7a0b\u8bed\u8a00\uff0c\u5176\u8bed\u6cd5\u7b80\u5355\u6613\u5b66\uff0c\u652f\u6301\u8de8\u5e73\u53f0\uff0c\u800c\u4e14\u62e5\u6709\u5927\u91cf\u7684\u7b2c\u4e09\u65b9\u5e93\u3002\u8fd1\u5e74\u6765\uff0cPython \u5728\u79fb\u52a8\u5e94\u7528\u9886\u57df\u4e5f\u9010\u6e10\u5f97\u5230\u4e86\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u5728\u5b89\u5353\u5e73\u53f0\u4e0a\u4f7f\u7528 Python \u8fdb\u884c\u5f00\u53d1\uff0c\u9700\u8981<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[23494,23493,471,14,72],"class_list":{"0":"post-17093","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-zuoapp","7":"tag-app","9":"tag-471","10":"tag-14","11":"tag-72"},"_links":{"self":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/17093","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\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/comments?post=17093"}],"version-history":[{"count":1,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/17093\/revisions"}],"predecessor-version":[{"id":17138,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/17093\/revisions\/17138"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/media?parent=17093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/categories?post=17093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/tags?post=17093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}