{"id":39533,"date":"2025-05-24T01:51:09","date_gmt":"2025-05-23T17:51:09","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/39533.html"},"modified":"2025-05-24T01:51:09","modified_gmt":"2025-05-23T17:51:09","slug":"%e5%9c%a8-android-%e6%89%8b%e6%9c%ba%e4%b8%8a%e8%bf%90%e8%a1%8c%e7%a8%b3%e5%ae%9a%e7%9a%84-web-%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e7%94%a8%e4%ba%8e-python-cgi-%e8%84%9a%e6%9c%ac%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/39533.html","title":{"rendered":"\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u7a33\u5b9a\u7684 Web \u670d\u52a1\u5668\uff08\u7528\u4e8e Python CGI \u811a\u672c\uff09"},"content":{"rendered":"<p>\u7528\u6237\u60f3\u8981\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u4e00\u4e2a Python \u7a0b\u5e8f&#xff0c;\u8be5\u7a0b\u5e8f\u65e2\u662f\u4e00\u4e2a CGI \u811a\u672c&#xff0c;\u4e5f\u662f\u4e00\u4e2a\u5c0f\u6570\u636e\u5e93\u7684\u57fa\u4e8e SMS \u7684\u4ea4\u4e92\u7cfb\u7edf\u3002\u5b83\u662f\u4e00\u4e2a\u6781\u4f4e\u9700\u6c42\u7684\u7cfb\u7edf&#xff08;\u5c11\u6570\u7528\u6237&#xff09;&#xff0c;\u7531\u4e00\u4e2a\u8349\u6839\u7ec4\u7ec7\u8fd0\u884c\u3002\u4f46\u5b83\u9700\u8981\u7a33\u5b9a\u6027&#xff0c;\u5373\u4e0d\u80fd\u6709\u968f\u673a\u5d29\u6e83\u6216\u5b95\u673a\u3002\u7531\u4e8e\u5404\u79cd\u539f\u56e0&#xff0c;\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u6b64\u7a0b\u5e8f\u53ef\u4ee5\u89e3\u51b3\u73b0\u6709\u8bbe\u7f6e\u7684\u4e00\u4e9b\u95ee\u9898\u3002\u7136\u800c&#xff0c;\u5728\u6df1\u5165\u7814\u7a76\u4e4b\u524d&#xff0c;\u7528\u6237\u5e0c\u671b\u4e86\u89e3\u6b64\u7c7b\u7cfb\u7edf\u7684\u53ef\u884c\u6027\u3002\u5b83\u5fc5\u987b&#xff1a;<\/p>\n<ul>\n<li>\u8fd0\u884c\u4e00\u4e2a\u53ef\u4ee5\u6267\u884c CGI \u811a\u672c\u7684 Web \u670d\u52a1\u5668&#xff08;\u539f\u751f CGI&#xff09;<\/li>\n<li>\u54cd\u5e94\u77ed\u4fe1<\/li>\n<li>\u5904\u7406 SQlite \u6570\u636e\u5e93<\/li>\n<li>\u5728 Python \u4e2d\u6267\u884c\u6b64\u64cd\u4f5c&#xff08;\u7531\u4e8e\u65f6\u95f4\u9650\u5236&#xff0c;\u65e0\u6cd5\u79fb\u690d\u5230 Java&#xff09;<\/li>\n<\/ul>\n<p>\u6b64\u9636\u6bb5\u4e0d\u9700\u8981\u4e0e\u624b\u673a\u7528\u6237\u4ea4\u4e92\u3002<\/p>\n<p>\u7528\u6237\u610f\u8bc6\u5230\u6240\u9700\u7684\u90e8\u4ef6\u5b58\u5728 &#8211; \u5e26\u6709 CGI\u3001SL4A \u7b49\u7684 Web \u670d\u52a1\u5668\u3002\u4f46\u662f Web \u670d\u52a1\u5668\u4f3c\u4e4e\u4e3b\u8981\u7528\u4e8e\u4e2a\u4eba\u7528\u9014&#xff0c;\u800c SL4A \u660e\u786e\u8868\u793a\u5b83\u201c\u662f alpha \u8d28\u91cf\u7684\u8f6f\u4ef6\u201d\u3002SO \u4e0a\u5173\u4e8e SL4A \u7684\u5404\u79cd\u95ee\u9898\u4f3c\u4e4e\u4e5f\u6ca1\u6709\u5bf9\u8fd9\u79cd\u7528\u4f8b\u591a\u8bf4\u4e9b\u4ec0\u4e48\u3002\u5b83\u4eec\u4e13\u6ce8\u4e8e\u624b\u673a\u7684\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1&#xff08;\u4f8b\u5982\u8fd9\u4e2a&#xff09;\u3002<\/p>\n<p>\u7b80\u800c\u8a00\u4e4b&#xff0c;\u8fd9\u6837\u4e00\u4e2a\u7cfb\u7edf\u662f\u5426\u53ef\u4ee5\u7a33\u5b9a\u8fd0\u884c&#xff1f;\u5047\u8bbe\u6838\u5fc3\u7a0b\u5e8f\u662f\u5065\u5168\u7684&#xff0c;\u662f\u5426\u53ef\u4ee5\u4f9d\u8d56\u5b83&#xff1f;<\/p>\n<h3>2\u3001\u89e3\u51b3\u65b9\u6848<\/h3>\n<p>\u7b54\u6848 1&#xff1a;<\/p>\n<ul>\n<li>CherryPy \u662f\u4e00\u4e2a\u53ef\u9760\u7684\u670d\u52a1\u5668&#xff0c;\u73b0\u5728 Android \u53ef\u80fd\u8db3\u591f\u53ef\u9760&#xff0c;\u53ef\u4ee5\u5728\u5176\u4e0a\u6784\u5efa\u670d\u52a1\u5668\u3002<\/li>\n<li>\u7528\u6237\u66fe\u7ecf\u7ef4\u62a4\u4e00\u4e2a\u4f7f\u7528 CherryPy \u548c SL4A&#xff08;\u5e26\u6709 ws4py \u7528\u4e8e WebSocket&#xff09;\u7684\u9879\u76ee\u3002<\/li>\n<li>CherryPy 3.2.2 \u5728 Python 2.6 \u548c Python 3.2 \u4e0a\u8fd0\u884c\u5b8c\u7f8e\u3002<\/li>\n<li>\u8be5\u5e94\u7528\u7a0b\u5e8f\u901a\u5e38\u4f1a\u8fd0\u884c\u4e00\u4e24\u5929\u3002\u5982\u679c\u5b83\u8fd0\u884c\u65f6\u95f4\u66f4\u957f&#xff0c;\u4f3c\u4e4e\u4e5f\u6ca1\u6709\u95ee\u9898&#xff0c;\u4f46\u7531\u4e8e\u5b83\u6b63\u5728\u5f00\u53d1\u4e2d&#xff0c;\u56e0\u6b64\u7ecf\u5e38\u88ab\u91cd\u65b0\u542f\u52a8\u3002<\/li>\n<li>CherryPy \u603b\u662f\u8fd0\u884c\u826f\u597d&#xff0c;\u4f46 Android \u8bbe\u5907\u6709\u65f6\u786e\u5b9e\u4f1a\u5d29\u6e83&#xff0c;\u56e0\u6b64 SL4A \u4f1a\u65f6\u4e0d\u65f6\u9000\u51fa&#xff0c;\u9700\u8981\u91cd\u65b0\u542f\u52a8\u3002\u5982\u679c\u8bbe\u5907\u4ec5\u7528\u4f5c\u670d\u52a1\u5668&#xff0c;\u8fd9\u53ef\u80fd\u4e0d\u662f\u95ee\u9898\u3002\u5bf9\u7528\u6237\u6765\u8bf4&#xff0c;\u5f53\u8bbe\u5907\u6574\u591c\u8fd0\u884c\u65f6\u5b83\u603b\u662f\u5f88\u7a33\u5b9a&#xff0c;\u4f46\u5728\u6b63\u5e38\u4f7f\u7528\u8bbe\u5907\u65f6\u5076\u5c14\u4f1a\u5d29\u6e83&#xff08;\u5b83\u662f\u7528\u6237\u5b9e\u9645\u7684\u624b\u673a&#xff09;\u3002\u6240\u6709\u8fd9\u4e00\u5207\u90fd\u662f\u5728 Galaxy SII \u4e0a\u8fdb\u884c\u7684&#xff0c;\u5f53\u65f6 Android \u8fd8\u50cf\u8fd9\u6837\u975e\u5e38\u5bb9\u6613\u51fa\u9519\u3002<\/li>\n<li>\u8bbe\u7f6e CherryPy \u5f88\u5bb9\u6613\u3002\u5b83\u662f\u7eaf Python&#xff0c;\u6240\u4ee5\u4f60\u53ea\u9700\u5c06\u5176\u590d\u5236\u5230\u67d0\u4e2a\u8def\u5f84\u4e2d\u5e76\u5bfc\u5165\u5b83\u5373\u53ef&#xff08;\u4f60\u4e5f\u4e0d\u9700\u8981\u6a21\u62df\u5668&#xff09;\u3002<\/li>\n<li>\u7528\u6237\u53ef\u80fd\u96be\u4ee5\u4fdd\u6301\u8bbe\u5907\u5524\u9192\u3002\u5982\u679c\u7f6e\u4e4b\u4e0d\u7406&#xff0c;\u5b83\u5c06\u8fdb\u5165\u7761\u7720\u72b6\u6001\u3002\u4f60\u53ef\u4ee5\u5728\u5f00\u53d1\u4eba\u5458\u9009\u9879\u4e2d\u544a\u8bc9\u5b83\u4fdd\u6301\u5524\u9192&#xff0c;\u4f46\u6211\u5f88\u786e\u5b9a\u53ea\u6709\u5728\u8bbe\u5907\u6b63\u5728\u5145\u7535\u65f6\u624d\u4f1a\u594f\u6548\u3002<\/li>\n<\/ul>\n<p>\u66f4\u65b0&#xff1a;\u73b0\u5728\u7684 Android \u66f4\u7a33\u5b9a\u4e86&#xff0c;\u4f46 SL4A \u9879\u76ee\u7684\u5de5\u4f5c\u5df2\u7ecf\u57fa\u672c\u7ed3\u675f\u3002\u6709\u4e00\u4e2a\u540d\u4e3a QPython \u7684\u9879\u76ee\u5c06 SL4A \u4f5c\u4e3a\u66f4\u5927\u5e94\u7528\u7a0b\u5e8f\u7684\u4e00\u90e8\u5206\u8fdb\u884c\u7ef4\u62a4&#xff0c;\u56e0\u6b64\u8fd9\u4e9b\u4e8b\u60c5\u4ecd\u7136\u53ef\u4ee5\u5b8c\u6210\u3002<\/p>\n<p>\u7b54\u6848 2&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5bf9\u4e8e\u5728 Android \u4e2d\u8fd0\u884c Python CGI \u811a\u672c\u3002\u57fa\u672c\u4e0a\u4f60\u9700\u8981\u4e00\u4e2a\u80fd\u591f\u5728 Android \u5e73\u53f0\u4e2d\u8fd0\u884c CGI \u811a\u672c\u7684 Web \u670d\u52a1\u5668&#xff0c;\u4f46\u627e\u4e0d\u5230\u3002\u4f60\u9700\u8981\u73a9\u5177 CGI \u811a\u672c\u6765\u9002\u5e94 Cherrypy Web \u670d\u52a1\u5668&#xff0c;\u5b83\u53ef\u4ee5\u5728 Android \u4e0a\u8fd0\u884c\u3002\u6b65\u9aa4\u5982\u4e0b&#xff1a;<\/p>\n<li>\n<p>\u9996\u5148\u6211\u4eec\u9700\u8981\u5728 Android&#xff08;2.3&#xff09;\u6a21\u62df\u5668\u4e2d\u4e0b\u8f7d SL4A&#xff08;r4&#xff09;\u8f6f\u4ef6\u3002\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528 Android \u6d4f\u89c8\u5668\u8bbf\u95ee SL4A \u7f51\u7ad9\u6765\u5b8c\u6210\u3002\u73b0\u5728\u5728\u6a21\u62df\u5668\u4e2d\u5b89\u88c5\u8be5\u8f6f\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p>\u7136\u540e\u4ece\u540c\u4e00\u4e2a SL4A \u7f51\u7ad9\u5b89\u88c5 Android \u7684 Python\u3002\u5b83\u4f1a\u4e0b\u8f7d\u7248\u672c r4 \u7684 apk\u3002<\/p>\n<\/li>\n<li>\n<p>\u542f\u52a8 SL4A \u5e94\u7528\u7a0b\u5e8f\u5e76\u68c0\u67e5 HelloWorld python \u811a\u672c\u662f\u5426\u6b63\u5728\u8fd0\u884c\u3002\u5b83\u5c06\u786e\u4fdd\u4f60\u7684\u5b89\u88c5\u6b63\u5e38\u3002<\/p>\n<\/li>\n<li>\n<p>\u73b0\u5728\u662f\u5b89\u88c5 Cherrypy \u5e93\u6a21\u5757\u7684\u65f6\u5019\u4e86\u3002\u5b83\u53ef\u4ee5\u5728 http:\/\/www.cherrypy.org\/wiki\/CherryPyDownload \u4e2d\u627e\u5230\u3002\u6211\u5df2\u7ecf\u91c7\u7528\u4e86 3.2.0 \u7248\u672c\u3002\u4e0b\u8f7d Python 2.6 \u7684 egg\u3002<\/p>\n<\/li>\n<li>\n<p>\u73b0\u5728\u6211\u4eec\u9700\u8981\u5c06 egg \u6587\u4ef6\u4f20\u8f93\u5230 Android \u6a21\u62df\u5668\u3002\u4f7f\u7528 adb push \u547d\u4ee4\u5c06 egg \u6587\u4ef6\u4f20\u8f93\u5230 \/mnt\/sdcard\/Download\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ece\u6a21\u62df\u5668\u542f\u52a8 Android \u7684 Python \u5e76\u5355\u51fb\u5bfc\u5165\u6a21\u5757\u3002\u5b83\u5c06\u5217\u51fa\u65b0\u4e0a\u4f20\u7684 egg \u6587\u4ef6\u3002\u9009\u62e9\u5b83\u5e76\u5b89\u88c5\u3002<\/p>\n<\/li>\n<li>\n<p>\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a Cherrypy \u811a\u672c\u4f5c\u4e3a CGI \u8fd0\u884c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a HelloWorld \u793a\u4f8b&#xff08;\u4ece Cherrypy \u6559\u7a0b\u4e2d\u83b7\u53d6&#xff0c;\u7ecf\u8fc7\u4e00\u4e9b\u4fee\u6539&#xff09;\u3002<\/p>\n<p> <span class=\"token comment\"># Import CherryPy global namespace<\/span>\n <\/li>\n<p>import cherrypy<\/p>\n<p>class HelloWorld: \u201c\u201d&#034; Sample request handler class. \u201c\u201d&#034;<\/p>\n<p>   def index(self, **params):<br \/>\n      # CherryPy will call this method for the root URI (&#034;\/&#034;) and send<br \/>\n      # its return value to the client.<br \/>\n      for key in params:<br \/>\n          print key, &#039;&#061;&#039;, params[key]<br \/>\n      return &#034;Hello world!&#034;<\/p>\n<p>  # Expose the index method through the web. CherryPy will never<br \/>\n  # publish methods that don&#039;t have the exposed attribute set to True.<br \/>\n  index.exposed &#061; True<\/p>\n<h2>CherryPy always starts with app.root when trying to map request URIs<\/h2>\n<h2>to objects, so we need to mount a request handler root. A request<\/h2>\n<h2>to \u2018\/\u2019 will be mapped to HelloWorld().index().<\/h2>\n<p>cherrypy.config.update({\u2018server.socket_host\u2019: \u2018127.0.0.1\u2019}) cherrypy.config.update({\u2018server.socket_port\u2019: 8080}) cherrypy.quickstart(HelloWorld(), \u2018\/\u2019)<\/p>\n<p>8&gt; \u9700\u8981\u5c06\u811a\u672c\u4f20\u8f93\u5230\u6a21\u62df\u5668\u4e2d\u7684 \/mnt\/sdcard\/sl4a\/scripts \u76ee\u5f55\u3002\u7136\u540e\u4f60\u53ef\u4ee5\u542f\u52a8 SL4A \u5e76\u70b9\u51fb\u811a\u672c\u8fd0\u884c\u3002\u5982\u679c\u4f60\u5728 SL4A \u63a7\u5236\u53f0\u4e2d\u8fd0\u884c&#xff0c;\u53ef\u4ee5\u770b\u5230\u8c03\u8bd5\u8f93\u51fa\u3002 9&gt; \u5728 Android \u6d4f\u89c8\u5668\u4e2d&#xff0c;\u68c0\u67e5 URL http:\/\/localhost:8080\/\u3002\u5b83\u4f1a\u663e\u793a\u201cHello world\u201d\u3002 \u8fd9\u662f\u6211\u4eec\u53ef\u4ee5\u653e\u7f6e Python \u811a\u672c\u4ee5\u8bbf\u95ee Android \u624b\u673a\u6570\u636e\u548c\u5176\u4ed6\u53ef\u4ee5\u5411\u5916\u90e8\u5ba2\u6237\u7aef\u516c\u5f00\u7684\u5185\u5bb9\u7684 Web \u670d\u52a1\u5668\u8bbe\u7f6e\u3002 \u9e23\u8c22&#xff1a;\u5728\u6b64\u5904\u67e5\u770b\u5c4f\u5e55\u622a\u56fe \u5176\u4ed6\u4fe1\u606f&#xff1a; \u4ea4\u53c9\u7f16\u8bd1\u5230 Android \u7684 micro-httpd&#xff08;GET \/ POST \/ CGI \u652f\u6301&#xff09; Android \u7684 python \u4f5c\u4e3a CGI \u811a\u672c\u8fd0\u884c\u201cHello, world!\u201d<\/p>\n<p>\u6211\u7684\u5efa\u8bae&#xff1a;<br \/>\n\u6211\u5efa\u8bae\u5728\u6811\u8393\u6d3e\u4e2d\u4f7f\u7528\u4efb\u4f55\u8f7b\u91cf\u7ea7 Web \u670d\u52a1\u5668&#xff08;\u5982 node.js&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>\u7b54\u6848 3&#xff1a;<\/p>\n<ul>\n<li>\u8fd9\u91cc\u6709\u4e00\u4e2a\u6211\u7684\u535a\u5ba2\u6587\u7ae0\u7684\u94fe\u63a5&#xff0c;\u5176\u4e2d\u63cf\u8ff0\u4e86\u5982\u4f55\u4f7f\u7528 Py4A\/SL4A \u5728\u5927\u7ea6 10 \u5206\u949f\u5185\u5c06\u4f60\u7684 Android \u624b\u673a\u53d8\u6210\u4e00\u4e2a\u57fa\u672c\u7684 CGI Web \u670d\u52a1\u5668&#xff1a;http:\/\/matbaker.wordpress.com\/2013\/01\/29\/android-webserver-in-10-minutes\/<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb831\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u7528\u6237\u60f3\u8981\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u4e00\u4e2a Python \u7a0b\u5e8f\uff0c\u8be5\u7a0b\u5e8f\u65e2\u662f\u4e00\u4e2a CGI \u811a\u672c\uff0c\u4e5f\u662f\u4e00\u4e2a\u5c0f\u6570\u636e\u5e93\u7684\u57fa\u4e8e SMS \u7684\u4ea4\u4e92\u7cfb\u7edf\u3002\u5b83\u662f\u4e00\u4e2a\u6781\u4f4e\u9700\u6c42\u7684\u7cfb\u7edf\uff08\u5c11\u6570\u7528\u6237\uff09\uff0c\u7531\u4e00\u4e2a\u8349\u6839\u7ec4\u7ec7\u8fd0\u884c\u3002\u4f46\u5b83\u9700\u8981\u7a33\u5b9a\u6027\uff0c\u5373\u4e0d\u80fd\u6709\u968f\u673a\u5d29\u6e83\u6216\u5b95\u673a\u3002\u7531\u4e8e\u5404\u79cd\u539f\u56e0\uff0c\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u6b64\u7a0b\u5e8f\u53ef\u4ee5\u89e3\u51b3\u73b0\u6709\u8bbe\u7f6e\u7684\u4e00\u4e9b\u95ee\u9898\u3002\u7136\u800c\uff0c\u5728\u6df1\u5165\u7814\u7a76\u4e4b\u524d\uff0c\u7528\u6237\u5e0c\u671b\u4e86\u89e3\u6b64\u7c7b\u7cfb\u7edf\u7684\u53ef\u884c\u6027\u3002\u6b64\u9636\u6bb5\u4e0d\u9700\u8981\u4e0e\u624b\u673a\u7528\u6237\u4ea4\u4e92\u3002\u7528\u6237\u610f\u8bc6\u5230\u6240\u9700\u7684\u90e8\u4ef6\u5b58\u5728 &#8211; \u5e26\u6709 CGI\u3001SL4A \u7b49\u7684 Web \u670d\u52a1\u5668\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[84,87,405],"topic":[],"class_list":["post-39533","post","type-post","status-publish","format-standard","hentry","category-server","tag-android","tag-87","tag-405"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u7a33\u5b9a\u7684 Web \u670d\u52a1\u5668\uff08\u7528\u4e8e Python CGI \u811a\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/39533.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u7a33\u5b9a\u7684 Web \u670d\u52a1\u5668\uff08\u7528\u4e8e Python CGI \u811a\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb831\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u7528\u6237\u60f3\u8981\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u4e00\u4e2a Python \u7a0b\u5e8f\uff0c\u8be5\u7a0b\u5e8f\u65e2\u662f\u4e00\u4e2a CGI \u811a\u672c\uff0c\u4e5f\u662f\u4e00\u4e2a\u5c0f\u6570\u636e\u5e93\u7684\u57fa\u4e8e SMS \u7684\u4ea4\u4e92\u7cfb\u7edf\u3002\u5b83\u662f\u4e00\u4e2a\u6781\u4f4e\u9700\u6c42\u7684\u7cfb\u7edf\uff08\u5c11\u6570\u7528\u6237\uff09\uff0c\u7531\u4e00\u4e2a\u8349\u6839\u7ec4\u7ec7\u8fd0\u884c\u3002\u4f46\u5b83\u9700\u8981\u7a33\u5b9a\u6027\uff0c\u5373\u4e0d\u80fd\u6709\u968f\u673a\u5d29\u6e83\u6216\u5b95\u673a\u3002\u7531\u4e8e\u5404\u79cd\u539f\u56e0\uff0c\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u6b64\u7a0b\u5e8f\u53ef\u4ee5\u89e3\u51b3\u73b0\u6709\u8bbe\u7f6e\u7684\u4e00\u4e9b\u95ee\u9898\u3002\u7136\u800c\uff0c\u5728\u6df1\u5165\u7814\u7a76\u4e4b\u524d\uff0c\u7528\u6237\u5e0c\u671b\u4e86\u89e3\u6b64\u7c7b\u7cfb\u7edf\u7684\u53ef\u884c\u6027\u3002\u6b64\u9636\u6bb5\u4e0d\u9700\u8981\u4e0e\u624b\u673a\u7528\u6237\u4ea4\u4e92\u3002\u7528\u6237\u610f\u8bc6\u5230\u6240\u9700\u7684\u90e8\u4ef6\u5b58\u5728 - \u5e26\u6709 CGI\u3001SL4A \u7b49\u7684 Web \u670d\u52a1\u5668\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/39533.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-23T17:51:09+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39533.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/39533.html\",\"name\":\"\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u7a33\u5b9a\u7684 Web \u670d\u52a1\u5668\uff08\u7528\u4e8e Python CGI \u811a\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-23T17:51:09+00:00\",\"dateModified\":\"2025-05-23T17:51:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/39533.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/39533.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39533.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u7a33\u5b9a\u7684 Web \u670d\u52a1\u5668\uff08\u7528\u4e8e Python CGI \u811a\u672c\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u7a33\u5b9a\u7684 Web \u670d\u52a1\u5668\uff08\u7528\u4e8e Python CGI \u811a\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/39533.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u7a33\u5b9a\u7684 Web \u670d\u52a1\u5668\uff08\u7528\u4e8e Python CGI \u811a\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb831\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u7528\u6237\u60f3\u8981\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u4e00\u4e2a Python \u7a0b\u5e8f\uff0c\u8be5\u7a0b\u5e8f\u65e2\u662f\u4e00\u4e2a CGI \u811a\u672c\uff0c\u4e5f\u662f\u4e00\u4e2a\u5c0f\u6570\u636e\u5e93\u7684\u57fa\u4e8e SMS \u7684\u4ea4\u4e92\u7cfb\u7edf\u3002\u5b83\u662f\u4e00\u4e2a\u6781\u4f4e\u9700\u6c42\u7684\u7cfb\u7edf\uff08\u5c11\u6570\u7528\u6237\uff09\uff0c\u7531\u4e00\u4e2a\u8349\u6839\u7ec4\u7ec7\u8fd0\u884c\u3002\u4f46\u5b83\u9700\u8981\u7a33\u5b9a\u6027\uff0c\u5373\u4e0d\u80fd\u6709\u968f\u673a\u5d29\u6e83\u6216\u5b95\u673a\u3002\u7531\u4e8e\u5404\u79cd\u539f\u56e0\uff0c\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u6b64\u7a0b\u5e8f\u53ef\u4ee5\u89e3\u51b3\u73b0\u6709\u8bbe\u7f6e\u7684\u4e00\u4e9b\u95ee\u9898\u3002\u7136\u800c\uff0c\u5728\u6df1\u5165\u7814\u7a76\u4e4b\u524d\uff0c\u7528\u6237\u5e0c\u671b\u4e86\u89e3\u6b64\u7c7b\u7cfb\u7edf\u7684\u53ef\u884c\u6027\u3002\u6b64\u9636\u6bb5\u4e0d\u9700\u8981\u4e0e\u624b\u673a\u7528\u6237\u4ea4\u4e92\u3002\u7528\u6237\u610f\u8bc6\u5230\u6240\u9700\u7684\u90e8\u4ef6\u5b58\u5728 - \u5e26\u6709 CGI\u3001SL4A \u7b49\u7684 Web \u670d\u52a1\u5668\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/39533.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-23T17:51:09+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/39533.html","url":"https:\/\/www.wsisp.com\/helps\/39533.html","name":"\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u7a33\u5b9a\u7684 Web \u670d\u52a1\u5668\uff08\u7528\u4e8e Python CGI \u811a\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-23T17:51:09+00:00","dateModified":"2025-05-23T17:51:09+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/39533.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/39533.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/39533.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728 Android \u624b\u673a\u4e0a\u8fd0\u884c\u7a33\u5b9a\u7684 Web \u670d\u52a1\u5668\uff08\u7528\u4e8e Python CGI \u811a\u672c\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=39533"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39533\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=39533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=39533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=39533"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=39533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}