{"id":2866,"date":"2022-09-27T13:01:08","date_gmt":"2022-09-27T05:01:08","guid":{"rendered":"https:\/\/ufqi.com\/blog\/?p=2866"},"modified":"2022-09-28T09:53:28","modified_gmt":"2022-09-28T01:53:28","slug":"gwa2-in-python-first-release","status":"publish","type":"post","link":"https:\/\/ufqi.com\/blog\/gwa2-in-python-first-release\/","title":{"rendered":"GWA2 in Python\u5409\u5a03\u5154\u53d1\u5e03Python\u8bed\u8a00\u521d\u59cb\u7248\u672c"},"content":{"rendered":"\n<p>GWA2\u5409\u5a03\u5154\u662f\u4e00\u79cd\u8de8\u7f16\u7a0b\u8bed\u8a00\u7684\u7f51\u7edc\u5e94\u7528\u5f00\u53d1\u6846\u67b6\uff0c\u5728\u6784\u5efa\u4e4b\u521d\u6211\u4eec\u8bbe\u60f3\u4e00\u5957\u8f6f\u4ef6\u4ee3\u7801\u7684\u7ec4\u7ec7\u3001\u7ba1\u7406\u548c\u4f7f\u7528\u65b9\u5f0f\u65b9\u6cd5\uff0c\u5e76\u5e0c\u671b\u8fd9\u4e9b\u8bbe\u8ba1\u601d\u60f3\u80fd\u591f\u4f7f\u7528\u5404\u79cd\u5e38\u7528\u7684\u7f16\u7a0b\u8bed\u8a00\u8fdb\u884c\u5b9e\u73b0\u3002<br \/>\u8fd1\u4e8c\u5341\u5e74\u6765\u8f83\u4e3a\u6d41\u884c\u7684\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\uff08Object Orientation Programming\uff09\u7684\u601d\u60f3\uff0c\u5728GWA2\u5409\u5a03\u5154\u7684\u8bbe\u8ba1\u548c\u5b9e\u8df5\u4e2d\u4e5f\u5f97\u5230\u5145\u5206\u4f53\u73b0\u3002<br \/>\u622a\u81f3\u76ee\u524d2022\u5e74\u4e0b\u534a\u5e74\uff0cGWA2\u5409\u5a03\u5154\u5df2\u7ecf\u53ef\u4ee5\u4f7f\u7528Java,  PHP \u548c Perl \u8fdb\u884c\u5404\u79cd\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\uff0c\u65e2\u53ef\u4ee5\u652f\u6301\u57fa\u4e8eB\/S\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u540e\u7aef\uff08\u670d\u52a1\u5668\u7aef\uff09\uff0c\u4e5f\u53ef\u4ee5\u662f\u57fa\u4e8e\u547d\u4ee4\u884c\u7684\u540e\u7aef\u8ba1\u7b97\u6216\u670d\u52a1\u3002\u4e5f\u5373 GWA2 in Java\uff0c GWA2 in PHP \u548c GWA2 in Perl. \u5df2\u7ecf\u662f\u5f00\u7bb1\u5373\u7528\u7684\u72b6\u6001\u4e86\u3002<br \/><img loading=\"lazy\" width=\"777\" height=\"976\" class=\"wp-image-2868\" style=\"width: 600px\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-2-2022.png\" alt=\"GWA2\u5409\u5a03\u5154\" srcset=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-2-2022.png 777w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-2-2022-239x300.png 239w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-2-2022-768x965.png 768w\" sizes=\"(max-width: 777px) 100vw, 777px\" \/><\/p>\n\n\n\n<p>Python\u7248\u672c\u7684GWA2\u7684\u5f00\u53d1\u4e00\u76f4\u5728\u6211\u4eec\u7684\u89c4\u5212\u548c\u4efb\u52a1\u8868\u4e0a\u3002\u6700\u65e9\u5728\u5341\u5e74\u524d\u76842018\u5e74\uff0c\u6211\u4eec\u5373\u7740\u624b\u8fdb\u884c\u5404\u79cd\u51c6\u5907\u5de5\u4f5c\u3002\u540c\u65f6\u4e5f\u5bc6\u5207\u6ce8\u89c6\u5728\u65e5\u5e38\u8f6f\u4ef6\u7814\u53d1\u8fc7\u7a0b\u4e2d\u7684 Python\u7a0b\u5e8f\u7684\u90e8\u7f72\u548c\u5e94\u7528\u3002\u6beb\u65e0\u7591\u95ee\u7684\uff0cPython\u8bed\u8a00\u672c\u8eab\u6700\u8fd1\u51e0\u5e74\u53d6\u5f97\u4e86\u8f83\u5927\u7684\u53d1\u5c55\uff0c\u57fa\u4e8ePython\u7684\u5404\u79cd\u7c7b\u5e93\u4e5f\u65e5\u6e10\u4e30\u5bcc\u3002\u5176\u6838\u5fc3\u662f\u6700\u63a5\u8fd1\u81ea\u7136\u8bed\u8a00\u7684\u7a0b\u5e8f\u8868\u8fbe\u4e3a\u5176\u65e5\u6e10\u6d41\u884c\u5f00\u6765\u5960\u5b9a\u4e86\u57fa\u7840\u3002<\/p>\n\n\n\n<p>\u4e00\u4e2a\u6708\u591a\u524d\u76842022\u5e748\u67088\u65e5\uff0c\u6211\u6709\u611f\u800c\u53d1\u5730\u5199\u4e86\u5fae\u535a\uff0c\u611f\u6168\u5c0f\u513f\u5b50hanu\u5728\u5c0f\u5b66\u5b66\u6821\u5174\u8da3\u73ed Python\u5165\u95e8\u4e2d\u7ecf\u8fc7\u77ed\u6682\u7684\u719f\u6089\u5df2\u7ecf\u53ef\u4ee5\u64cd\u63a7Python\u7684 Turtle\u7c7b\u5e93\u8fdb\u884c\u753b\u56fe\u5e94\u7528\u7684\u8bbe\u8ba1\u4e86\u3002\u5dee\u4e0d\u591a\u524d\u540e\u811a\uff0c\u987a\u5229\u5165\u8bfb\u6e05\u534e\u9644\u4e2d\u671d\u9633\u5b66\u6821\u7684\u957f\u5973\u513fyoyo\u4e5f\u5f00\u59cb\u9009\u7528 Python\u4f5c\u4e3a\u9ad8\u4e2d\u4fe1\u606f\u79d1\u76ee\u7684\u7f16\u7a0b\u8bed\u8a00\u3002\u8fd9\u4e48\u8bf4\u6765\uff0c\u6211\u4eec\u5bb6\u5df2\u7ecf\u6709\u4e09\u53e3\u4eba\u8981\u8ddf Python\u7f16\u7a0b\u6253\u4ea4\u9053\u4e86\u3002<br \/><img loading=\"lazy\" width=\"587\" height=\"305\" class=\"wp-image-2867\" style=\"width: 600px\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-2022.png\" alt=\"\" srcset=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-2022.png 587w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-2022-300x156.png 300w\" sizes=\"(max-width: 587px) 100vw, 587px\" \/><\/p>\n\n\n\n<p>\u6211\u5bf9 Python\u7684\u63a5\u89e6\u8f83\u65e9\uff0c\u5927\u7ea6\u516d\u4e03\u5e74\u524d\u7740\u624b\u51c6\u5907\u4eba\u5de5\u667a\u80fd\u7684\u8bba\u6587\uff0c\u5176\u4e2d\u9700\u8981\u505a\u4e9b\u5b9e\u9a8c\u65f6\uff0c\u80fd\u591f\u5feb\u901f\u4e0a\u624b\u7684\u4eba\u5de5\u667a\u80fd\u5e94\u7528\u7684\u7c7b\u5e93\uff0c\u591a\u6570\u90fd\u662f\u4f7f\u7528 Python\u8bed\u8a00\u5f00\u53d1\u7684\u3002\u8fd9\u53ef\u80fd\u4e0e Python\u4e2d\u5bf9\u96c6\u5408\uff08Set\uff09\u6570\u636e\u7c7b\u578b\u7684\u652f\u6301\u59e3\u597d\uff0c\u5bf9\u6570\u5b66\u77e9\u9635\u7684\u8ba1\u7b97\u8f83\u4e3a\u4fbf\u5229\u3002<br \/>\u518d\u65e9\u524d\uff0c\u6211\u4eec\u5728\u5f00\u53d1 UfqiNews\u6709\u798f\u65b0\u95fb \uff08 ufqi.com\/news \uff09\u65f6\uff0c\u53d1\u73b0\u8f83\u4e3a\u9760\u8c31\u7684\u4e2d\u6587\u5206\u8bcd\u7c7b\u5e93\uff0c\u5177\u6709\u5f00\u7bb1\u5373\u7528\u4fbf\u5229\u6761\u4ef6\u7684\uff0c\u4e5f\u662f\u7528 Python\u5199\u6210\u5e76\u53d1\u5e03\u5f00\u6e90\u7684 Github\u4e0a\u3002<br \/>2022\u5e749\u6708\u65b0\u8fd1\uff0c\u6211\u4eec\u5728\u7814\u53d1  \u6709\u798f\u91d1\u878dUfqiFina \uff08 ufqi.com\/finance  \uff09\u65f6\uff0c\u53d1\u73b0\u4e00\u4e2a\u6838\u5fc3\u529f\u80fd\u7684\u7c7b\u5e93\u6709\u5f00\u6e90\u7a0b\u5e8f\u53ef\u7528\uff0c\u800c\u4e14\u662f\u7528 Python\u5199\u6210\u7684\uff0c\u8fd9\u7684\u786e\u662f\u591a\u8def\u9700\u6c42\u90fd\u6c47\u96c6\u5230 Python\u7f16\u7a0b\u8bed\u8a00\u4e0a\u4e86\u3002\u6211\u4eec\u9700\u8981\u5c06 GWA2 in Python\u6446\u4e0a\u65e5\u7a0b\u8868\u524d\u5217\u3002<\/p>\n\n\n\n<p>Python \u6700\u5f15\u4eba\u6ce8\u76ee\u7684\u5730\u65b9\u662f\u5728\u547d\u4ee4\u884c\u4e0b\u53ef\u4ee5\u4ea4\u4e92\u5f0f\u7684\u6267\u884c\u8bed\u53e5\uff0c\u6709\u4e9b\u7c7b\u4f3c\u5728SQL\u67e5\u8be2\u7ec8\u7aef\uff0c\u80fd\u591f\u968f\u65f6\u4ea4\u4e92\u5f0f\u8fdb\u884c\u201c\u7f16\u7a0b\u201d\uff0c\u5e76\u4e0d\u662f\u8f6f\u4ef6\u7814\u53d1\u6240\u5173\u6ce8\u7684OOP\u6216\u8005MVC\u7b49\u3002<br \/>\u7136\u800c\u5982\u679c\u8981\u7ec4\u7ec7\u548c\u5f00\u53d1\u3001\u7ba1\u7406\u548c\u7ef4\u62a4\u4e00\u5957\u8f6f\u4ef6\uff0c\u5fc5\u9700\u8fdb\u884c\u4e00\u4e9b\u9488\u5bf9\u4ee3\u7801\u5f00\u53d1\u3001\u7ba1\u7406\u548c\u4f7f\u7528\u7684\u65b9\u5f0f\u65b9\u6cd5\uff0cOOP\u7ecf\u8fc7\u591a\u5e74\u7684\u53d1\u5c55\u5df2\u7ecf\u6210\u719f\u800c\u7a33\u5b9a\uff0cMVC\u7b49\u8f6f\u4ef6\u5f00\u53d1\u5b9e\u8df5\u7ecf\u9a8c\u4e5f\u6210\u4e3a\u4e1a\u754c\u6807\u51c6\u3002<br \/>\u6211\u4eec\u7740\u624b\u8fdb\u884c GWA2 in Python\u7684\u5f00\u53d1\u65f6\uff0c\u9996\u5148\u8981\u68b3\u7406\u7684\u662f Python\u5bf9\u4ee3\u7801\u7ec4\u7ec7\u548c\u7ba1\u7406\u7684\u529f\u80fd\uff0c\u5bf9OOP\u601d\u60f3\u7684\u5177\u4f53\u5b9e\u73b0API\u7b49\u7b49\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-202209-scaled.jpg\"><img loading=\"lazy\" width=\"1024\" height=\"362\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-202209-1024x362.jpg\" alt=\"\" class=\"wp-image-2869\" srcset=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-202209-1024x362.jpg 1024w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-202209-300x106.jpg 300w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-202209-768x271.jpg 768w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-202209-1536x543.jpg 1536w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-202209-2048x724.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Python OOP<\/figcaption><\/figure>\n\n\n\n<p>\u7a0d\u5fae\u68b3\u7406\u4e00\u4e0b\uff0c\u6211\u4eec\u53d1\u73b0 Python\u4ee3\u7801\u5927\u81f4\u6309\u7167 Package &#8212; Module &#8212; Class &#8212; Methods &#8212; Variables \u8fd9\u6837\u4e94\u4e2a\u5c42\u7ea7\u8fdb\u884c\u7ec4\u7ec7\u548c\u7ba1\u7406\u7684\u3002\u5176\u4e2d\u6bcf\u4e00\u4e2a\u4e0a\u7ea7\u5bf9\u4e0b\u7ea7\u90fd\u662f\u4e00\u5bf9\u591a\u7684\u5173\u7cfb\u3002\u4e00\u4e2aPackage\uff08\u76ee\u5f55\uff09\u4e0b\u9762\u53ef\u4ee5\u6709\u5f88\u591a\u4e2aModule\uff08\u6587\u4ef6\uff09\u548c\u5b50Package\uff08\u76ee\u5f55\uff09\uff0c\u4e00\u4e2aModule\uff08\u6587\u4ef6\uff09\u4e2d\u53ef\u4ee5\u6709\u591a\u4e2aClass\uff08\u5b9e\u4f53\uff0c\u4ee3\u7801\u5757\uff09\uff0c\u8fdb\u4e00\u6b65\u5730\uff0c\u4e00\u4e2aClass\uff08\u5b9e\u4f53\uff09\u53ef\u4ee5\u6709\u591a\u4e2aMethonds\uff08\u65b9\u6cd5\u6216\u529f\u80fd\u51fd\u6570Functions\uff0c\u4ee3\u7801\u5757\uff09&#8230;<\/p>\n\n\n\n<p>\u5173\u4e8eOOP\u5728 Python\u4e2d\u5927\u81f4\u662f\u5728\u7c7b\u7684\u58f0\u660e\u4e2d\u901a\u8fc7\u53c2\u6570\u65b9\u5f0f\u6765\u5b9e\u73b0\u7ee7\u627f\u5173\u7cfb\u3002\u4f5c\u4e3a\u6240\u6709\u7c7b\u7684\u57fa\u7c7b\uff0c\u9664\u4e86 Object\uff0cPython\u8fd8\u63d0\u4f9b\u4e86\u62bd\u8c61\u57fa\u7840\u7c7b Abstract Base Class (abc.ABC) . \u6709\u4e86\u8fd9\u4e9b\u57fa\u7840\u652f\u6491\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06 GWA2 \u7684\u8bbe\u8ba1\u601d\u60f3\u4f7f\u7528 Python\u6765\u5b9e\u73b0\u3002<\/p>\n\n\n\n<p>GWA2 in Python \u57fa\u7840\u6838\u5fc3\u7c7b\u548c\u6587\u4ef6<br \/>inc\/WebInterface.py<br \/>inc\/WebApp.py<br \/>mod\/FinanceFund.py<br \/>ctrl\/financefund.py<br \/>&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-aclass-relation-202209.png\"><img loading=\"lazy\" width=\"718\" height=\"925\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-aclass-relation-202209.png\" alt=\"\" class=\"wp-image-2870\" srcset=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-aclass-relation-202209.png 718w, https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2022\/09\/gwa2-python-aclass-relation-202209-233x300.png 233w\" sizes=\"(max-width: 718px) 100vw, 718px\" \/><\/a><figcaption>Classes in GWA2 in Python<\/figcaption><\/figure>\n\n\n\n<p>\u5728\u6211\u4eec\u53d1\u5e03\u7684 GWA2 in Python \u7684\u521d\u59cb\u7248\u672c\u4e2d\uff0c\u6211\u4eec\u7ed9\u51fa\u7684\u6837\u4f8b\u7a0b\u5e8f\u5982\u4e0a\u56fe\u6240\u793a\u3002\u6211\u4eec\u8bbe\u82e5\u8981\u521b\u5efa\u4e00\u4e2a &#8220;?mod=financefund&#8221; \u7684\u5e94\u7528( ufqi.com\/finance )\u5165\u53e3\u3002<br \/>1) \u521b\u5efa\u63a7\u5236\u5668\u5165\u53e3\u7a0b\u5e8f ctrl\/financefund.py ,<br \/>2) \u5728\u63a7\u5236\u5668\u7a0b\u5e8f ctrl\/financefund \u5185\u5f15\u5165\u5bf9\u8c61\u7c7b mod\/Financefund.py<br \/>3) \u5728\u521b\u5efa\u5bf9\u8c61\u7c7b mod\/Financefund \u65f6,\u5f15\u5165\u57fa\u7840\u7c7b inc\/WebApp.py<br \/>4) \u57fa\u7840\u7236\u7c7b  inc\/WebApp \u662f\u8d85\u7ea7\u63a5\u53e3 inc\/WebInterface.py \u7684\u5177\u4f53\u5b9e\u73b0.<\/p>\n\n\n\n<p>\u719f\u6089\u7ed3\u6784\u3001\u719f\u6089\u7684\u7a0b\u5e8f\u3001\u719f\u6089\u7684API\uff0c\u4e00\u5207\u90fd\u662f GWA2 style.<br \/>\u5728 Python\u7684\u4e16\u754c\u91cc\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u81ea\u7531\u5730\u4f7f\u7528 GWA2 \u6240\u6709\u7684API\u53ca\u5de5\u5177\uff0c\u5c31\u50cf\u6211\u4eec\u53ef\u4ee5\u5728 Java\u4e2d\u4f7f\u7528 GWA2 in Java, \u5728 PHP \u4e2d\u4f7f\u7528 GWA2 in PHP, \u5728 Perl \u4e2d\u4f7f\u7528 GWA2 in Perl\u4e00\u6837\u3002\u73b0\u5728\u6240\u6709\u7684\u8fd9\u4e9b\uff0c\u90fd\u53ef\u4ee5\u901a\u884c\u901a\u7528\u3002<\/p>\n\n\n\n<p>\u5728\u5404\u81ea\u7684\u7f16\u7a0b\u8bed\u8a00\u73af\u5883\u4e0b\uff0c\u90fd\u53ef\u4ee5\u4f7f\u7528\u7c7b\u4f3c:<br \/>myObject.getBy<br \/>myObject-&gt;getBy<\/p>\n\n\n\n<p>\u5173\u4e8e\u8bbf\u95ee\u8def\u5f84\u7684\u8def\u7531\u53ca\u6a21\u5757\u52a8\u6001\u8c03\u7528\uff0cPython\u91cc\u6ca1\u6709\u7c7b\u4f3c PHP \u4e2d\u7684 include \u5185\u7f6e\u65b9\u6cd5\u90a3\u4e48\u4fbf\u5229\u5730\u5c06\u5404\u79cd\u4ee3\u7801\u5757\u62fc\u5408\u5230\u4e00\u8d77\u518d\u6267\u884c\uff0c\u751a\u81f3\u662f\u53d8\u91cf\u4e5f\u662f  include \u65b9\u6cd5\u5185\u5916\u5171\u4eab\u4f5c\u7528\u57df\u7684\u3002Python \u63d0\u4f9b\u4e86\u5185\u7f6e\u65b9\u6cd5 __import__ \u4e5f\u53ef\u4ee5\u884c\u4f7f\u7c7b\u4f3c Java Servlet \u4e2d\u7684 include \u5185\u7f6e\u65b9\u6cd5\u4e00\u6837\uff0c \u53ea\u662f Java Servlet \u4e2d include \u5141\u8bb8\u643a\u5e26\u4fbf\u5229\u7684 request \u548c response \u901a\u9053\u6765\u5b9e\u73b0\u53d8\u91cf\u4f20\u9012\u3002<\/p>\n\n\n\n<p>\u7531\u4e8e\u6ca1\u6709\u76f4\u63a5\u7684\u663e\u793a\u7684\u901a\u9053\u80fd\u591f\u5728 Python  \u7684\u65b9\u6cd5 __import__ \u5185\u5916\u8fdb\u884c\u53d8\u91cf\u6570\u636e\u7684\u4f20\u9012\uff0c\u6839\u636e Python \u7684\u5b98\u65b9\u5efa\u8bae\uff0c\u53ef\u4ee5 import \u5f15\u5165\u4e00\u4e2a\u5171\u6709\u7684 Module \uff0c \u7c7b\u4f3c\u4e8e\u5728 PHP \u548c Java \u7b49\u7f16\u7a0b\u8bed\u8a00\u4e2d\uff0c \u6211\u4eec\u53ef\u4ee5\u5728 Python\u4e2d\u5c06 inc\/Config \u4f5c\u4e3a\u5171\u4eab\u7684Module\uff0c\u6765\u5b9e\u73b0\u8fd9\u6837\u7684\u529f\u80fd\u3002<br \/>\u540c\u65f6\uff0c\u901a\u8fc7\u5728 __import__ \u524d\uff0c\u8bbe\u7f6e\u7c7b\u4f3c\u4e8e GWA2 Java \u7684 crossPage \u9875\u9762\u95f4\u6570\u636e\u4f20\u8f93\u5bf9\u8c61\u4e00\u6837\uff0c\u5c06\u6240\u6709\u9700\u8981\u5728Python \u6a21\u5757\u95f4\u4f20\u9012\u7684\u6570\u636e\uff0c\u653e\u5165 crossPage \u4e2d\u3002\u5bf9\u5e94\u7684\u5728\u63a5\u53d7\u7aef\u7684 Module\u4e2d\uff0c\u5f00\u59cb\u524d\u548c\u7ed3\u675f\u540e\uff0c\u901a\u8fc7\u5c06 crossPage\u6570\u636e\u62c6\u89e3\u548c\u5c01\u88c5\uff0c\u7136\u540e\u7ecf\u7531 Config\u7684\u5168\u5c40\u5171\u4eab\u901a\u9053\u8fdb\u884c\u6570\u636e\u4f20\u9012\u3002<br \/>\u6700\u540e\uff0c\u5728 __import__ \u65b9\u6cd5\u4f53\u4e4b\u540e\uff0c\u901a\u8fc7 crossPage \u5c06\u6267\u884c\u5b8c\u6210\u7684\u7ed3\u679c\u6570\u636e\u53d6\u56de\uff0c\u8fdb\u4e00\u6b65\u5730\u4ea4\u7ed9\u8d1f\u8d23\u8f93\u51fa\u7684\u529f\u80fd\u6a21\u5757\u3002<\/p>\n\n\n\n<p>2022\u5e749\u6708\uff0cGWA2 in Python\u7684\u521d\u59cb\u9884\u89c8\u7248\u672c\u5df2\u7ecf\u53d1\u5e03\u5728 Github\u4e0a\uff0c\u540c\u6b65\u955c\u50cf\u5728 gitee \u4e0a\u4e5f\u6709\u3002\u6b22\u8fce\u5927\u5bb6\u8bd5\u7528\u5c1d\u8bd5\u3001\u7ee7\u7eed\u8865\u5145\u5b8c\u5584\uff0c\u5171\u5efa\u7f8e\u597d\u8f6f\u4ef6\u7814\u53d1\u6846\u67b6\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p>\u5168\u6587\u9996\u53d1\u5730\u5740\uff1a https:\/\/ufqi.com\/blog\/gwa2-in-python-first-release\/\uff0c&nbsp;<strong><a rel=\"noreferrer noopener\" href=\"https:\/\/ufqi.com\/naturedns\/search?q=-R\/t2SU\" target=\"_blank\">-R\/t2SU<\/a><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2020\/08\/gwa2-logo-202005.v3.png\" alt=\"\" \/><figcaption>GWA2\u5409\u5a03\u5154<\/figcaption><\/figure>\n\n\n\n<p><a href=\"https:\/\/ufqi.com\/dev\/gwa2\/\">-GWA2 \u5409\u5a03\u5154<\/a>&nbsp;\u662f\u201d\u901a\u7528\u7f51\u7edc\u5e94\u7528\u67b6\u6784( General Web Application Architecture,&nbsp;https:\/\/ufqi.com\/dev\/gwa2\/ )\u201d\uff0c\u57fa\u4e8e -GWA2 \u53ef\u4ee5\u8f7b\u4fbf\u6784\u5efa\u5404\u79cd\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f,<br \/>\u5305\u62ec\u590d\u6742\u7684\u5728\u7ebf\u8d2d\u7269\u5546\u57ce\u3001\u5728\u7ebf\u533b\u7597\u3001\u5728\u7ebf\u6559\u80b2\u3001 \u65c5\u6e38\u4ea4\u6613\u5e73\u53f0\u3001\u793e\u7fa4\u6216\u8005\u793e\u4ea4\u7f51\u7ad9\u548c\u65b0\u95fb\u8d44\u8baf\u7f51\u7ad9\u7b49\uff0c<br \/>\u4e5f\u5305\u62ec\u5404\u79cd\u4f01\u4e8b\u4e1a\u5355\u4f4d\u7f51\u4e0a\u95e8\u6237\uff0c\u5728\u7ebf\u4ea4\u4e92\u53ca\u670d\u52a1\u4f5c\u4e1a\u7cfb\u7edf\u7b49.<br \/>\u8fd8\u53ef\u4ee5\u5305\u62ec\u4e3aNativeApp\u505a\u670d\u52a1\u5668\u7aef\u652f\u6301, \u751a\u81f3\u662fWebApp\u7684\u5168\u90e8.<br \/>-GWA2 \u662f\u4e3a\u6570\u4e0d\u591a\u7684\u652f\u6301\u8de8\u5f00\u53d1\u8bed\u8a00\u7684\u5e94\u7528\u6846\u67b6\uff0c\u76ee\u524d\u652f\u6301 -Java, -PHP, -Perl, -Aspx and -Python .<\/p>\n\n\n\n<p>-GWA2 is a \u201cGeneral Web Application Architecture\u201d and based on -GWA2 developers can easily build a variety of network applications,<br \/>including complex online shopping malls, online medical services, online teaching, travel trading platforms, community or social networking sites and news information sites, etc.<br \/>Also the applications include various online portals of enterprises and institutions, online interaction and service operations systems.<br \/>Moreover it contains server-side support for Native App, or even all of the WebApp.<br \/>-GWA2 is one of the web frameworks which provide cross-language support for -Java, -PHP, -Perl, -Aspx and -Python at present.<\/p>\n\n\n\n<p><strong>-GWA2 is E.A.S.Y&nbsp;<\/strong><br \/><strong>Easy Along, Swift Yield<br \/><\/strong>\u8f7b\u677e\u542f\u52a8, \u5feb\u901f\u4ea7\u51fa.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GWA2\u5409\u5a03\u5154\u662f\u4e00\u79cd\u8de8\u7f16\u7a0b\u8bed\u8a00\u7684\u7f51\u7edc\u5e94\u7528\u5f00\u53d1\u6846\u67b6\uff0c\u5728\u6784\u5efa\u4e4b\u521d\u6211\u4eec\u8bbe\u60f3\u4e00\u5957\u8f6f\u4ef6\u4ee3\u7801 &hellip; <a href=\"https:\/\/ufqi.com\/blog\/gwa2-in-python-first-release\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":2870,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[42,6,2],"tags":[508,86,307,509],"_links":{"self":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2866"}],"collection":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/comments?post=2866"}],"version-history":[{"count":7,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2866\/revisions"}],"predecessor-version":[{"id":2879,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2866\/revisions\/2879"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media\/2870"}],"wp:attachment":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media?parent=2866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/categories?post=2866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/tags?post=2866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}