{"id":80167,"date":"2023-10-10T02:28:05","date_gmt":"2023-10-09T18:28:05","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=80167"},"modified":"2023-10-10T02:28:05","modified_gmt":"2023-10-09T18:28:05","slug":"programming-python","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/programming-python.html","title":{"rendered":"\u7f16\u7a0b\u8001\u53f8\u673a\u7684\u7b14\u8bb0\uff0c\u5e26\u4f60\u7cfb\u7edf\u5b66Python"},"content":{"rendered":"
<\/p>\n
\u5728\u6211\u521a\u5b66Python\u7684\u65f6\u5019\uff0c\u6bcf\u5929\u9664\u53bb\u767d\u5929\u4e0a\u73ed\uff0c\u4e3a\u4e86\u4fdd\u8bc1\u5b66\u4e60\u8d28\u91cf\uff0c\u6211\u4f1a\u6bcf\u5929\u82b1\u4e09\u56db\u4e2a\u5c0f\u65f6\u6765\u5b66\u4e60\uff0c\u5929\u5929\u5982\u6b64\u3002\u6240\u6709\u7684\u6587\u6863\u8d44\u6599\uff0c\u95ee\u7b54\u6211\u90fd\u5c3d\u91cf\u53bb\u770b\u82f1\u6587\u7248\uff0c\u8fd9\u53ef\u4ee5\u7701\u4e0b\u5927\u91cf\u65f6\u95f4\u3002\u5728\u6211\u505a\u7684\u7f51\u7ad9\u4e0a\u7ebf\u540e\uff0c3\u5929\u5927\u7ea6\u67099000\u591a\u4eba\u8bbf\u95ee\u4e86\u8fd9\u4e2a\u7f51\u7ad9\uff0c\u6211\u5728\u540e\u53f0\u770b\u7740\u65e5\u5fd7\u7684\u65f6\u5019\uff0c\u5185\u5fc3\u4e0d\u514d\u6709\u4e9b\u6fc0\u52a8\uff0c\u6211\u60f3\u5c06\u81ea\u5df1\u7684\u7ecf\u9a8c\u5199\u4e0b\uff0c\u5e0c\u671b\u5e2e\u52a9\u9f13\u52b1\u5230\u90a3\u4e9b\u60f3\u5b66\u4e60Python\u4f46\u65e0\u4ece\u4e0b\u624b\u7684\u670b\u53cb\u3002<\/p>\n
\u521a\u5f00\u59cb\u6211\u5bf9\u642d\u5efa\u7f51\u7ad9\u4e00\u8138\u61f5\u903c\u3002\u4e3a\u4e86\u7ed9\u81ea\u5df1\u5feb\u901f\u5efa\u7acb\u4e00\u4e2a\u6846\u67b6\uff0c\u6211\u5728\u7535\u8111\u9762\u524d\u5446\u4e86\u6574\u6574\u4e00\u5929\uff0c\u4e86\u89e3\u4e86HTML\uff0cCSS\uff0cJavaScript\uff0cAjax\uff0cjQuery\uff0cReact\uff0cSQL\uff0c\u670d\u52a1\u5668\u811a\u672c\u7b49\u7b49\u77e5\u8bc6\uff0c\u4e0d\u5962\u671b\u8bf4\u8981\u5168\u5b66\u4f1a\u7cbe\u901a\uff0c\u53ea\u662f\u4e86\u89e3\u6bcf\u4e00\u9879\u90fd\u662f\u7528\u6765\u5e72\u561b\u7684\uff0c\u7136\u540e\u5efa\u7acb\u8d77\u4e86\u4e00\u4e2a\u5b66\u4e60\u8def\u7ebf\u56fe\uff0c\u8fd9\u6837\u5c31\u77e5\u9053\u505a\u4e00\u4e2aWeb App\u5927\u6982\u9700\u8981\u54ea\u4e9b\u6280\u80fd\u77e5\u8bc6\uff0c\u5b89\u6392\u597d\u5b66\u4e60\u7684\u89c4\u5212\u987a\u5e8f\u3002\u5c0f\u7f16\u5728\u8fd9\u91cc\u63a8\u8350\u4e24\u4e2a\u8d44\u6e90\uff1a<\/p>\n
Python\u57fa\u7840\u77e5\u8bc6\uff1a\u7b28\u65b9\u6cd5\u5b66Python<\/p>\n
Web App\u57fa\u7840\u77e5\u8bc6\uff1a\u5f20\u79cb\u6021\u7684\u7b54\u6848\u5199\u7684\u901a\u4fd7\u6613\u61c2<\/p>\n
\u6709\u4e86\u8fd9\u4e2a\u5b66\u4e60\u8def\u7ebf\u56fe\uff0c\u6211\u4e86\u89e3\u4e86\u524d\u7aef\u4e09\u5927\u5fc5\u5907\u6280\u80fdHTML\u3001CSS\u3001JavaScript\uff0c\u5927\u6982\u82b1\u4e8610\u5929\u7684\u6837\u5b50\u628aW3Schools\u4e0a\u7684\u76f8\u5173\u5185\u5bb9\u90fd\u770b\u4e86\u4e00\u904d\uff0c\u7136\u540e\u5199\u4e86\u51e0\u4e2a\u7f51\u9875\uff0c\u611f\u89c9\u81ea\u5df1\u5199\u7684\u5f88\u62a0\u811a\u3002\u4e8e\u662f\u6211\u6839\u636e\u77e5\u4e4e\u8c46\u74e3\u4e0a\u7684\u63a8\u8350\uff0c\u8d2d\u4e70\u4e86\u300aJaveScript DOM\u300b\u3001\u300aHead First HTML\u4e0eCSS\u300b\u4e24\u672c\u4e66\uff0c\u8fb9\u770b\u8fb9\u628a\u6848\u4f8b\u8fc7\u4e86\u904d\u3002<\/p>\n
W3Schools: www.w3schools.com<\/p>\n
JavaScript\uff1aJavaScript DOM\u7f16\u7a0b\u827a\u672f<\/p>\n
HTML\u3001 CSS\uff1a Head First HTML\u4e0eCSS<\/p>\n
\u524d\u7aef\u9700\u8981\u6211\u53bb\u6162\u6162\u5b66\u4e60\uff0c\u770b\u5b8c\u90a3\u4e9b\u8d44\u6599\u540e\uff0c\u867d\u7136\u6211\u80fd\u5199\u51fa\u8fd8\u4e0d\u9519\u7684\u9875\u9762\uff0c\u4f46\u6211\u77e5\u9053\u5f88\u591a\u90fd\u4e0d\u7b26\u5408\u6807\u51c6\uff0c\u66f4\u522b\u8bf4\u4ee3\u7801\u98ce\u683c\u5565\u7684\u3002\u8fd9\u4e9b\u53ea\u6709\u5728\u81ea\u5df1\u4e0d\u65ad\u5730\u79ef\u7d2f\u548c\u589e\u52a0\u4ee3\u7801\u91cf\u4e2d\u6765\u63d0\u9ad8\u3002\u6211\u660e\u767d\u670d\u52a1\u5668\u7aef\u9700\u8981\u8017\u8d39\u592a\u591a\u65f6\u95f4\uff0c\u6240\u4ee5\u53d1\u73b0\u6211\u80fd\u591f\u6309\u6784\u601d\u52c9\u52c9\u5f3a\u5f3a\u6765\u5b9e\u73b0\u7f51\u9875\u540e\uff0c\u6211\u5c31\u4e13\u5fc3\u5b66\u670d\u52a1\u5668\u7aef\u53bb\u4e86\u3002\u4f46\u662f\u6bcf\u5929\u8fd8\u662f\u4f1a\u62bd\u65f6\u95f4\u5199\u4e00\u5199\u7f51\u9875\uff0c\u514d\u5f97\u624b\u751f\u4e86\u561b\u3002<\/p>\n
\u9996\u5148\u8981\u4e86\u89e3\u4ec0\u4e48\u662fHTTP\u534f\u8bae\uff0c\u5c31\u662f\u670d\u52a1\u5668\u548c\u6d4f\u89c8\u5668\u4e4b\u95f4\u662f\u5982\u4f55\u901a\u4fe1\u7684\u3002\u6bd4\u5982\u5f53\u4f60\u5728\u6d4f\u89c8\u5668\u91cc\u8f93\u5165\u7f51\u5740\u6309\u56de\u8f66\u4e00\u76f4\u5230\u7f51\u9875\u5728\u4f60\u6d4f\u89c8\u5668\u663e\u793a\u7684\u8fd9\u4e2a\u8fc7\u7a0b\u671f\u95f4\uff0c\u6d4f\u89c8\u5668\u548c\u6d4f\u89c8\u5668\u4e4b\u95f4\u53d1\u751f\u4e86\u4ec0\u4e48\u4e8b\u60c5\u3002\u8fd9\u662f\u975e\u5e38\u6709\u610f\u601d\u7684\u5185\u5bb9\uff0c\u4e86\u89e3\u8fd9\u4e9b\u5185\u5bb9\u4e4b\u540e\uff0c\u4f60\u5c31\u4f1a\u77e5\u9053\u50cf\u6709\u65f6\u5019\u4e3a\u4ec0\u4e48\u4f1a\u6709404\u9875\u9762\uff1f\u5728\u641c\u7d22\u5f15\u64ce\u641c\u7d22\u6846\u91cc\u8f93\u5165\u7684\u5173\u952e\u8bcd\u662f\u600e\u4e48\u63d0\u4ea4\u5230\u767e\u5ea6\u670d\u52a1\u5668\u7684?\u4e3a\u4f55\u5f88\u591a\u7f51\u7ad9\u91cd\u65b0\u767b\u5f55\u5c31\u4e0d\u7528\u8f93\u5165\u5bc6\u7801\uff1f\u7b49\u7b49\u76f8\u5173\u7684\u95ee\u9898\u4e86\u3002<\/p>\n
\u5728\u4e86\u89e3\u8fc7HTTP\u534f\u8bae\u540e\uff0c\u6211\u5c31\u5f00\u59cb\u5165\u8ff7\u4e86\u3002\u5f88\u591a\u770b\u4f3c\u6666\u6da9\u96be\u61c2\u7684\u73b0\u8c61\u5176\u5b9e\u539f\u7406\u5f88\u7b80\u5355\uff0c\u7136\u540e\u4f60\u4f1a\u88ab\u5438\u5f15\u3002\u4e4b\u540e\u5c31\u5f00\u59cb\u5230\u6211\u82b1\u65f6\u95f4\u6700\u591a\u7684\u90e8\u5206\u2014\u2014\u540e\u7aef\u5f00\u53d1\u3002\u8fd8\u8bb0\u5f97\u5f53\u65f6\u5728\u4e86\u89e3 Web\u5f00\u53d1\u7684 MVC(Model-View-Controller)\u6a21\u5f0f\u540e\uff0c\u6709\u4e00\u79cd\u7070\u5e38\u6fc0\u52a8\u7684\u611f\u89c9\uff0c\u611f\u89c9\u592a\u6709\u610f\u601d\u4e86(\u5927\u5bb6\u522b\u55b7\u54c8\uff0c\u5e74\u8f7b\u4eba\u6ca1\u89c1\u8fc7\u4e16\u9762)\u3002<\/p>\n
\u6211\u4eec\u6bcf\u4e2a\u4eba\u7684\u4e3b\u9875\u90fd\u662f\u5dee\u4e0d\u591a\u7684\u5e03\u5c40\u98ce\u683c\uff0c\u6bd4\u5982\u83dc\u5355\u641c\u7d22\u680f\u3001\u5de6\u8fb9\u663e\u793a\u52a8\u6001\u3001\u989c\u8272\u5206\u5272\u7b49\uff0c\u53f3\u8fb9\u662f\u4e2a\u4eba\u4fe1\u606f\u7b49\uff0c\u5177\u4f53\u7684\u5185\u5bb9\u5374\u56e0\u4eba\u800c\u5f02\u2014\u2014\u6bcf\u4e2a\u4eba\u7684\u540d\u5b57\u3001\u5934\u50cf\u3001\u52a8\u6001\u90fd\u662f\u4e0d\u4e00\u6837\u7684\u3002\u90a3\u4e48\u95ee\u9898\u6765\u4e86\uff0c\u77e5\u4e4e\u662f\u600e\u6837\u4fdd\u8bc1\u6211\u4eec\u6bcf\u4e2a\u4eba\u6240\u770b\u5230\u7684\u90fd\u662f\u81ea\u5df1\u7684\u4e3b\u9875\u5462?<\/p>\n
\u4f60\u53ef\u4ee5\u628a\u8fd9\u4e2a\u76f8\u540c\u7684\u5e03\u5c40\u60f3\u8c61\u6210\u4e00\u4e2a\u6a21\u677f\uff0c\u91cc\u9762\u6709\u4e00\u4e2a\u4e2a\u7a7a\u683c\u5b50\uff0c\u5728\u4f60\u767b\u9646\u9875\u9762\u7684\u65f6\u5019\uff0c\u60f3\u8c61\u4e00\u4e0b\u4f60\u7535\u8111\u91cc\u6709\u65e0\u6570\u4e2a\u5c0f\u4eba\u6839\u636e\u4f60\u8f93\u5165\u7684\u8d26\u53f7\u4ece\u77e5\u4e4e\u540e\u53f0\u6570\u636e\u5e93\u91cc\u53d6\u51fa\u4f60\u7684\u586b\u5199\u8fc7\u7684\u6240\u6709\u4fe1\u606f\uff0c\u7136\u540e\u5bf9\u5e94\u6a21\u677f\u89c4\u5b9a\u597d\u7684\u4f4d\u7f6e\uff0c\u628a\u76f8\u5e94\u5185\u5bb9\u586b\u8fdb\u53bb\u3002\u8fd9\u4e9b\u5c0f\u4eba\u52a8\u4f5c\u5f88\u5feb\uff0c\u4ee5\u81f3\u4e8e\u8ba9\u4f60\u611f\u89c9\u8fd9\u662f\u77ac\u95f4\u5b8c\u6210\u7684\u3002<\/p>\n
\u4e4b\u524d\u8bf4\u7684\u6a21\u677f\u662f MVC \u4e2d\u7684 V\uff08View\uff09\uff0c\u5b83\u8d1f\u8d23\u663e\u793a\u3002\u8fd9\u6837\u505a\u597d\u5904\u5728\u4e8e\u5982\u679c\u77e5\u4e4e\u6709\u4e00\u5929\u7a81\u7136\u60f3\u6539\u53d8\u4e2a\u4eba\u4e3b\u9875\u98ce\u683c\uff0c\u90a3\u5c31\u53ea\u8981\u6539\u8fd9\u4e00\u4e2a\u6a21\u677f\uff0c\u7136\u540e\u6240\u6709\u7684\u6ce8\u518c\u7528\u6237\u5176\u4e3b\u9875\u5c31\u76f8\u5e94\u53d8\u5316\u4e86\uff0c\u6a21\u677f\u662f\u516c\u7528\u7684\uff0c\u7701\u4e86\u5f88\u591a\u4e8b\u60c5?(\u65e9\u671f\u7684Web\u5f00\u53d1\u8fd8\u9700\u8981\u4e00\u4e2a\u4e2a\u7528\u6237\u53bb\u6539\uff0c\u8d85\u7ea7\u9ebb\u70e6\uff09<\/p>\n
\u8fd9\u4e9b\u5c0f\u4eba\u9664\u53bb\u6446\u653e\u5185\u5bb9\uff0c\u5b83\u4eec\u4e3b\u8981\u8d1f\u8d23\u4e1a\u52a1\u903b\u8f91\uff0c\u4e00\u822c\u53eb\u505a Controller\uff0c\u4e5f\u5c31 V\uff08View\uff09\uff1b\u6bd4\u5982\u5728\u4f60\u767b\u9646\u65f6\uff0c\u8fd9\u4e9b\u5c0f\u4eba\u9700\u8981\u68c0\u67e5\u4f60\u7684\u7528\u6237\u540d\u662f\u5426\u51c6\u786e\uff0c\u51c6\u786e\u7684\u8bdd\u5b83\u4eec\u8981\u53bb\u6570\u636e\u5e93\u4e2d\u53d6\u51fa\u4f60\u7684\u8bf7\u6c42\u4fe1\u606f\uff0c\u9519\u8bef\u7684\u8bdd\u5b83\u4eec\u8981\u62e6\u622a\u4f60\u7684\u767b\u9646\u3002\u5b83\u4eec\u7684\u804c\u8d23\u592a\u591a\u65e0\u6cd5\u4e00\u4e00\u53bb\u5217\u4e3e\u3002\u800c\u5728\u5b9e\u9645\u4e2d\uff0c\u8fd9\u4e9b\u5c0f\u4eba\u505a\u7684\u4e8b\u60c5\u5c31\u662fPython\u505a\u7684\u4e8b\u60c5\u3002<\/p>\n
MVC \u4e2d\u7684 Model \u5c31\u662f\u4f20\u7ed9 View \u7684\u6570\u636e\uff0c\u5305\u62ec\u7528\u6237\u540d\u3001\u5934\u50cf\u3001\u52a8\u6001\u7b49\u6570\u636e\u3002\u8fd9\u4e9b\u6570\u636e\u5728\u670d\u52a1\u5668\u4e0a\u4ee5\u6570\u636e\u5e93\u8868\u683c\u7684\u5f62\u5f0f\u5b58\u5728\uff0c\u6211\u4eec\u53ef\u4ee5\u628a\u5b83\u4eec\u60f3\u8c61\u6210\u8bb8\u591a\u4e0d\u540c\u7684excel\u8868\u683c\uff0c\u6bcf\u4e2a\u8868\u683c\u50a8\u5b58\u7740\u4e0d\u540c\u7684\u4fe1\u606f\uff0c\u5982\u7528\u6237\u4e2a\u4eba\u4fe1\u606f\uff0c\u56de\u7b54\uff0c\u8bc4\u8bba\u7b49\u7b49\uff0c\u800c\u8fd9\u4e9b\u8868\u683c\u4e4b\u95f4\u5374\u53c8\u5f7c\u6b64\u8054\u7cfb\uff0c\u5f53\u4f60\u5728\u8df3\u8f6c\u77e5\u4e4e\u4e2d\u4e0d\u540c\u7f51\u9875\u7684\u65f6\u5019\uff0c\u90a3\u4e9b\u5c0f\u4eba\u5c31\u4f1a\u6839\u636e\u4f60\u7684\u9700\u6c42\uff0c\u7ec4\u5408\u5bf9\u5e94\u8868\u683c\u53d6\u51fa\u5bf9\u5e94\u6570\u636e\uff0c\u628a\u4ed6\u4eec\u653e\u5230\u6a21\u677f\u5bf9\u5e94\u7a7a\u683c\u4e2d\uff0c\u53d1\u9001\u7ed9\u6d4f\u89c8\u5668\u3002\u6d4f\u89c8\u5668\u518d\u6839\u636e\u4f60\u5199\u7684CSS\uff0c\u7528\u4e0d\u540c\u7684\u5927\u5c0f\u3001\u989c\u8272\u7b49\u7b49\uff0c\u5c06\u6570\u636e\u975e\u5e38\u6f02\u4eae\u7684\u663e\u793a\u51fa\u6765\u3002<\/p>\n
\u8fd9\u6837\u505a\u6709\u4ec0\u4e48\u597d\u5904\u5462?\u867d\u7136\u6700\u7ec8\u5728\u6d4f\u89c8\u5668\u770b\u5230\u7684\u662f\u4e00\u4e2a\u5b8c\u6574\u9875\u9762\uff0c\u4f46\u5728\u540e\u7aef\u903b\u8f91\u4e0a\u5b83\u4eec\u662f\u533a\u5206\u5f00\u7684\u2014\u2014\u89c6\u56fe(V)\u3001\u6a21\u578b(M)\u548c\u63a7\u5236\u5668(C)\u4ed6\u4eec\u7684\u533a\u5206\u5c31\u4fdd\u8bc1\u4e86\u975e\u5e38\u9ad8\u7684\u53ef\u7ef4\u62a4\u6027\u2014\u2014\u6211\u968f\u65f6\u53ef\u4ee5\u4fee\u6539\u4e3b\u9875\u663e\u793a\u770b\u5230\u6548\u679c\uff0c\u6211\u8fd8\u53ef\u4ee5\u968f\u65f6\u52a0\u5165\u4e00\u4e9b\u4e1a\u52a1\u903b\u8f91\u3002<\/p>\n
\u5f53\u4f60\u7684\u5b66\u4e60\u575a\u6301\u5230\u8fd9\u91cc\u4e86\uff0c\u90a3\u4e48\u6211\u8981\u606d\u559c\u4f60\u3002\u53ef\u80fd\u4f60\u77e5\u9053\u4e00\u4e9b\u6210\u719f\u5e38\u7528\u7684Django\uff0cFlask\u7b49Python Web\u6846\u67b6\u4e86\uff0c\u53ef\u80fd\u4f60\u770b\u5230\u4e00\u4e9b\u5c0f\u767d\u6559\u7a0b\u76f4\u63a5\u6559\u4f60\u4f7f\u7528\uff0c\u53ef\u80fd\u5927\u90e8\u5206\u4eba\u4f1a\u89c9\u5f97\u6ca1\u6709\u5fc5\u8981\u91cd\u590d\u9020\u8f6e\u5b50\u3002<\/p>\n
\u539f\u672c\u4e3a\u4e86\u7701\u4e8b\uff0c\u6211\u51c6\u5907\u76f4\u63a5\u7528\u6846\u67b6\u3002\u4f46\u662f\u6211\u5728\u8bbe\u8ba1\u6570\u636e\u5e93\u65f6\uff0c\u90a3\u65f6\u5019\u5728\u770bSQLAlchemy\u6587\u6863\uff0c\u89c9\u5f97\u81ea\u5df1\u7684\u9879\u76eeSQLAlchemy\u592a\u590d\u6742\u4e86\uff0c\u6240\u4ee5\u6211\u51b3\u5b9a\u5199\u81ea\u5df1\u7684ORM\uff0c\u5f53\u65f6\u5bf9\u6211\u6765\u8bf4\u662f\u4e00\u4ef6\u975e\u5e38\u6709\u96be\u5ea6\u7684\u4e8b\u3002\u4e8e\u662f\u4e4e\u6211\u6295\u5165\u4e86\u5927\u91cf\u7cbe\u529b\u6bcf\u5929\u770b\u5173\u4e8eSQL\u548cPython\u7684\u6559\u7a0b\u8d44\u6599\uff0c\u300aPython\u6838\u5fc3\u7f16\u7a0b\u300b\u7ed9\u4e88\u6211\u5f88\u591a\u542f\u53d1\u3002\u5728\u5b8c\u6210\u4e86ORM\u540e\uff0c\u53c8\u53bb\u5199URL\u5904\u7406\u51fd\u6570\uff0c\u6ca1\u6709\u53bb\u7528\u73b0\u6210\u7684Web\u6846\u67b6\u3002<\/p>\n
\u5982\u4eca\u56de\u5934\u53bb\u770b\uff0c\u6211\u89c9\u5f97\u8fd9\u6bb5\u65f6\u95f4\u7684\u9020\u8f6e\u5b50\u662f\u6211\u63d0\u5347\u7f16\u7a0b\u80fd\u529b\u6700\u5feb\u7684\u65f6\u671f\u3002\u50cf\u4e3a\u4e86\u5199ORM\uff0c\u5c31\u5f97\u53bb\u82b1\u5927\u91cf\u65f6\u95f4\u5b66\u4e60SQL\uff0c\u4e86\u89e3Python\u91cc\u9762\u7684metaclass\uff0c\u8981\u662f\u6211\u7528\u4e00\u4e2a\u73b0\u6210\u7684\u6846\u67b6\uff0c\u5f88\u6709\u53ef\u80fd\u5c31\u5077\u61d2\u4e0d\u53bb\u5173\u6ce8\u5f88\u591a\u5c0f\u7ec6\u8282\u3002\u4e0d\u51fa\u95ee\u9898\u7684\u8bdd\u8fd8\u597d\uff0c\u51fa\u95ee\u9898\u5c31GG\u3002\u9020\u8f6e\u5b50\u8ba9\u6211\u5728\u4e00\u5f00\u59cb\u5c31\u5fc5\u987b\u53bb\u6784\u601d\u6574\u4e2a\u6846\u67b6\uff0c\u6211\u5fc5\u987b\u8981\u8003\u8651\u5230\u6240\u6709\u60c5\u51b5\uff0c\u5c31\u53ea\u80fd\u4e0d\u65ad\u7684\u5f3a\u8feb\u81ea\u5df1\u53bb\u5b8c\u5584\u77e5\u8bc6\u4f53\u7cfb\uff0c\u8ddf\u522b\u4eba\u7684\u4ee3\u7801\u5bf9\u6bd4\u6765\u7cbe\u8fdb\u81ea\u5df1\u7684\uff0c\u5c3d\u7ba1\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u5145\u6ee1\u4e86\u632b\u8d25\u611f\uff0c\u4f46\u662f\u6240\u83b7\u5f97\u7684\u6210\u5c31\u548c\u5feb\u4e50\u5374\u662f\u65e0\u53ef\u6bd4\u62df\u7684\u3002<\/p>\n
\u5728\u8fd9\u8fc7\u7a0b\u4e2d\u8fd8\u7275\u6d89\u5230\u90e8\u7f72\uff0c\u6211\u7684\u7f51\u7ad9\u662f\u5728Linux\u4e0a\u8dd1\u7684\u3002\u90e8\u7f72\u7684\u8bdd\u53ef\u4ee5\u5728\u7f51\u4e0a\u641c\u4e00\u4e0b\u6559\u7a0b\u3002\u8fd9\u91cc\u6211\u5c31\u4e0d\u591a\u8bf4\u4e86\u3002\u8fd9\u4e9b\u662f\u6211\u5927\u6982\u7684\u5b66\u4e60\u8def\u7ebf\uff0c\u8fc7\u7a0b\u4e2d\u5145\u6ee1\u78d5\u78d5\u7eca\u7eca\uff0c\u7f51\u7ad9\u867d\u7136\u4e0a\u7ebf\u4e86\uff0c\u8fd0\u884c\u8fd8\u7b97\u6bd4\u8f83\u987a\u5229\uff0c\u4f46\u4ee5\u4e00\u4e2a\u7a0b\u5e8f\u5458\u7684\u6807\u51c6\u8981\u6c42\u81ea\u5df1\u7684\u8bdd\uff0c\u81ea\u5df1\u8fd8\u662f\u975e\u5e38\u83dc\u9e1f\u7684\u3002\u4f46\u6211\u4e0d\u50cf\u4ee5\u524d\u90a3\u6837\u60e7\u6015\u6280\u672f\u4e86\uff0c\u5c31\u6bd4\u5982\u4f60\u660e\u767d\u9b54\u672f\u7684\u539f\u7406\u4e4b\u540e\uff0c\u5c31\u4f1a\u66f4\u591a\u53bb\u7684\u601d\u8003\u8fd9\u4e2a\u539f\u7406\u672c\u8eab\u3002<\/p>\n
\u73b0\u5728\u5f88\u591a\u4eba\u90fd\u63a8\u8350\u5c06Python\u4f5c\u4e3a\u7b2c\u4e00\u95e8\u5165\u95e8\u8bed\u8a00\uff0c\u56e0\u4e3a\u5176\u8bed\u6cd5\u7b80\u5355\u3002\u4e0d\u8fc7\u8fd9\u8bdd\u53ea\u8bf4\u4e86\u4e00\u534a\uff0cPython\u867d\u7136\u5bb9\u6613\u4e0a\u624b\uff0c\u5bf9\u521d\u5b66\u8005\u6ca1\u4ec0\u4e48\u95e8\u69db\u3002\u4f46\u662f\u5bf9\u4e8e\u5c0f\u767d\u6700\u5927\u7684\u95e8\u69db\u5728\u4e8e\u7cfb\u7edf\u77e5\u8bc6\uff0c\u8fd9\u4e2a\u5c31\u8ddf\u4f60\u7528\u4ec0\u4e48\u8bed\u8a00\u6ca1\u6709\u4efb\u4f55\u5173\u7cfb\u4e86\u3002\u5c31\u50cf\u5f88\u591a\u4eba\u770b\u5b8cPython\u8bed\u6cd5\uff0c\u611f\u89c9\u597d\u7b80\u5355\uff0c\u4f46\u8f6c\u5934\u5728\u7528Python\u6807\u51c6\u5e93\u65f6\uff0c\u624d\u53d1\u73b0\u81ea\u5df1\u770b\u6587\u6863\u90fd\u770b\u4e0d\u61c2\u3002\u6807\u51c6\u5e93\u63d0\u4f9b\u4e86Python\u548c\u5176\u5b83\u7cfb\u7edf\u529f\u80fd\u7684\u63a5\u53e3\uff0c\u6700\u7ec8\u5b9e\u73b0\u4e86Python\u548c\u7cfb\u7edf\u4e4b\u95f4\u7684\u4e92\u52a8\u3002\u8bfb\u6807\u51c6\u5e93\u9700\u8981\u5f88\u591a\u7cfb\u7edf\u77e5\u8bc6\uff0c\u5982\uff1a\u64cd\u4f5c\u7cfb\u7edf\u3001\u6570\u636e\u5e93\u3001socket\u7f16\u7a0b\u3001\u8fdb\u7a0b\u548c\u7ebf\u7a0b\u3001\u7f51\u7edc\u534f\u8bae\u7b49\u7b49\uff0c\u800c\u8fd9\u4e9b\u4e1c\u897f\u5bf9\u7f16\u7a0b\u5c0f\u767d\u6784\u6210\u4e86\u6bd4\u8f83\u9ad8\u7684\u95e8\u69db\uff0c\u4f46\u53ea\u6709\u5b66\u4f1a\u8fd9\u4e9b\u4e1c\u897f\uff0c\u4f60\u624d\u80fd\u771f\u6b63\u91ca\u653e\u51faPython\u7684\u771f\u6b63\u7684\u5a01\u529b\u3002<\/p>\n
\u8fd9\u662f\u6211\u89c9\u5f97\u81ea\u5df1\u7684\u7ecf\u5386\u5bf9\u7f16\u7a0b\u5c0f\u767d\u6709\u4ef7\u503c\u7684\u539f\u56e0\u4e4b\u4e00\u3002\u8bbe\u8ba1\u4e00\u4e2a\u52a8\u6001\u7684\u7f51\u9875\u662f\u975e\u5e38\u4e0d\u9519\u7684\u7684\u7ec3\u624bProject\u3002\u5efa\u7acb\u7f51\u9875(Web App)\u4f1a\u8ba9\u4f60\u81ea\u5df1\u4e86\u89e3\u4ece\u5728\u6d4f\u89c8\u5668\u8f93\u5165\u5730\u5740\u56de\u8f66\u5230\u7f51\u9875\u663e\u793a\u5728\u6d4f\u89c8\u5668\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6d4f\u89c8\u5668\uff0c\u670d\u52a1\u5668\uff0c\u7f51\u7edc\u90fd\u505a\u4e86\u4e9b\u4ec0\u4e48\u3002\u5177\u4f53\u5230\u6280\u672f\u5c42\u9762\uff0c\u8feb\u4f7f\u4f60\u4e0d\u5f97\u4e0d\u53bb\u5b66\u524d\u7aef\u7684HTML\uff0cCSS\u548cJavaScript\uff0c\u540e\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u811a\u672c\uff0c\u6570\u636e\u5e93\u7b49\u7b49\u3002\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u53ef\u4ee5\u4fc3\u4f7f\u81ea\u5df1\u4e3b\u52a8\u5b66\u4e60\u4e0a\u9762\u90a3\u4e9b\u7cfb\u7edf\u77e5\u8bc6\uff0c\u7b49\u518d\u505a\u4e0b\u4e00\u4e2a\u9879\u76ee\uff0c\u5c31\u4e0d\u4f1a\u50cf\u73b0\u5728\u8fd9\u6837\u4e0d\u77e5\u9053\u600e\u4e48\u4e0b\u624b\uff0c\u6709\u80fd\u529b\u6765\u8fdb\u884c\u4e00\u4e9b\u6280\u672f\u6027\u7684\u63a2\u8ba8\uff0c\u6240\u4ee5\u8bf4\u6211\u89c9\u5f97\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u597d\u7684\u7ec3\u624b\u9879\u76ee\u3002<\/p>\n
1\u3001\u4e00\u5b9a\u8981\u591a\u8865\u5145\u7406\u8bba\u77e5\u8bc6\u3002\u5927\u591a\u6570\u4eba\u4f1a\u5f3a\u8c03\u8fb9\u505a\u9879\u76ee\u8fb9\u5b66\u4e60\uff0c\u8fd9\u4e5f\u662f\u6211\u4f7f\u7528\u7684\u5b66\u4e60\u65b9\u5f0f\u3002\u5728\u8fd9\u79cd\u65b9\u5f0f\u4e2d\uff0c\u6211\u4eec\u4e0d\u65ad\u72af\u9519\uff0c\u7136\u540e\u53bb\u6539\u6b63\u2026\u2026\u5b66\u4e60\u6548\u7387\u786e\u5b9e\u9ad8\u3002\u4f46\u5f88\u591a\u4eba\u5374\u8d70\u4e86\u6781\u7aef\uff0c\u4e0d\u6ce8\u610f\u7406\u8bba\u77e5\u8bc6\u7684\u5b66\u4e60\u3002\u6700\u540e\u53d1\u73b0\u81ea\u5df1\u53bb\u767e\u5ea6\u7684\u80fd\u529b\u8d85\u7ea7\u5389\u5bb3\uff0c\u7136\u800c\u771f\u6b63\u7684\u7f16\u7a0b\u80fd\u529b\u6ca1\u6709\u4e00\u70b9\u63d0\u5347\u3002\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\uff0c\u4f60\u5c31\u9700\u8981\u53cd\u601d\u4e00\u4e0b\u4e86\u3002
\n\u539f\u56e0\u5927\u6982\u5c31\u4e24\u70b9\uff1a<\/p>\n
\u2460\u3001\u592a\u4f9d\u8d56\u5404\u79cd\u6210\u719f\u7684\u6846\u67b6\uff0c\u7ed3\u679c\u7f16\u7a0b\u53d8\u6210\u4e86\u7528\u300c\u80f6\u6c34\u300d\u53bb\u7c98\u5408\u4e0d\u540c\u7684\u6846\u67b6\u6765\u5b8c\u6210\u4f60\u81ea\u5df1\u7684\u9700\u6c42\u3002\u6bd4\u5982\u4f60\u7684Web App\u7528\u4e86SQLAlchemy\uff0c\u81ea\u5df1\u867d\u7136\u4e0d\u592a\u61c2SQL\uff0c\u4f46\u7f51\u7ad9\u8dd1\u7684\u8fd8\u884c\u3002\u4f46\u662f\u8fd9\u65f6\u5019\u6570\u636e\u5e93\u51fa\u73b0\u95ee\u9898\uff0c\u4f60\u600e\u4e48\u529e\u5462\uff1fGG\u5427<\/p>\n
\u2461\u3001\u4f60\u53ef\u80fd\u6c89\u6d78\u5728\u505a\u9879\u76ee\u7684\u5feb\u611f\u4e2d\u65e0\u6cd5\u81ea\u62d4\uff0c\u5374\u5ffd\u7565\u4e86\u5b66\u4e60\u7406\u8bba\u77e5\u8bc6\u3002\u505a\u9879\u76ee\u8fc7\u7a0b\u4e2d\u867d\u7136\u5f88\u56f0\u96be\uff0c\u4f46\u662f\u5f3a\u70c8\u7684\u6210\u5c31\u611f\u8ba9\u4f60\u5f88\u723d\uff0c\u6c89\u6d78\u5176\u4e2d\u3002\u6211\u89c9\u5f97\u8fd9\u662f\u975e\u5e38\u611a\u8822\u7684\u3002\u534a\u8def\u51fa\u5bb6\u7684\u7a0b\u5e8f\u5458\u6ca1\u6709\u7cfb\u7edf\u7684\u5b66\u4e60\u8fc7\uff0c\u6ca1\u6709\u5f62\u6210\u4e00\u4e2a\u81ea\u5df1\u7684\u77e5\u8bc6\u4f53\u7cfb\uff0c\u5047\u5982\u4f60\u4e0d\u61c2\u7b97\u6cd5\u590d\u6742\u5ea6\uff0c\u6570\u636e\u7ed3\u6784\uff0c\u64cd\u4f5c\u7cfb\u7edf\u8fd9\u4e9b\u7406\u8bba\uff0c\u90a3\u6ce8\u5b9a\u4f60\u6240\u80fd\u8fbe\u5230\u7684\u9ad8\u5ea6\u975e\u5e38\u6709\u9650\u3002\u6240\u4ee5\u6211\u4eec\u5728\u6bcf\u5929\u505a\u9879\u76ee\u7684\u540c\u65f6\uff0c\u4e00\u5b9a\u4e00\u5b9a\u8981\u4fdd\u8bc1\u62bd\u51fa\u65f6\u95f4\uff0c\u6765\u6076\u8865\u4e00\u4e0b\u7406\u8bba\u77e5\u8bc6\u3002\u8fd9\u4e9b\u4e66\u5728\u77e5\u4e4e\u8c46\u74e3\u90fd\u592a\u591a\u603b\u7ed3\uff0c\u53ef\u4ee5\u53bb\u641c\u641c\u770b\u3002<\/p>\n
2\u3001\u522b\u53bb\u7ea0\u7ed3\u90a3\u4e9b\u6beb\u65e0\u610f\u4e49\u7684\u95ee\u9898\uff0c\u50cf\u54ea\u4e2a\u6846\u67b6\u597d\uff0c\u67d0\u67d0\u8bed\u8a00\u6bd4\u67d0\u67d0\u8bed\u8a00\u597d\u5462\u8fd9\u79cd\u6ca1\u8425\u517b\u7684\u95ee\u9898\u3002\u524d\u671f\u786e\u5b9a\u597d\u7ec3\u624b\u9879\u76ee\u540e\uff0c\u5c31\u4e13\u5fc3\u53bb\u79ef\u7d2f\u4ee3\u7801\u91cf\u57fa\u7840\u77e5\u8bc6\u3002\u90a3\u4e9b\u4f60\u73b0\u5728\u8fd8\u770b\u4e0d\u61c2\u611f\u89c9\u8d85\u7ea7\u540a\u7684\u6280\u672f\u6162\u6162\u7684\u5c31\u80fd\u660e\u767d\u539f\u7406\u505a\u6cd5\u4e86\uff0c\u6ca1\u6709\u57fa\u7840\uff0c\u518d\u70ab\u9177\u540a\u7684\u4e0d\u8981\u4e0d\u8981\u7684\u6846\u67b6\u5bf9\u4f60\u800c\u8a00\u90fd\u662f\u5929\u4e66\uff0c\u4ece\u5c0f\u5c31\u5b66\u7684\u4e07\u4e08\u9ad8\u697c\u5e73\u5730\u8d77\u90fd\u88ab\u629b\u4e4b\u8111\u540e\u4e86\u3002<\/p>\n
3\u3001\u5b66\u4f1a\u53bb\u95ee\u3002\u597d\u95ee\u9898\u5efa\u7acb\u4e8e\u4f60\u5df2\u7ecf\u5b9e\u8df5\u8fc7\u6216\u8005\u601d\u8003\u8fc7\u4e4b\u540e\u518d\u95ee\u51fa\u6765\u7684\uff0c\u8fd9\u4e0d\u4ec5\u662f\u5bf9\u81ea\u5df1\u7684\u4e00\u79cd\u8d1f\u8d23\uff0c\u4e5f\u662f\u5bf9\u4ed6\u4eba\u7684\u4e00\u79cd\u5c0a\u91cd\u3002\u522b\u6709\u95ee\u9898\u5c31\u767e\u5ea6\u6216\u8005\u76f4\u63a5\u7529\u7ed9\u522b\u4eba\uff1a\u300c\u8fd9\u4e2a\u95ee\u9898\u662f\u600e\u4e48\u56de\u4e8b\u554a?\u300d\uff0c\u300c\u6211\u4e0d\u660e\u767d\u4f60\u80fd\u4e0d\u80fd\u5e2e\u6211\u770b\u770b\u2026\u2026\u300d\u3002<\/p>\n
4\u3001\u6700\u540e\u6709\u6761\u4ef6\u5c3d\u91cf\u5b66\u597d\u82f1\u8bed\uff0c\u8fd9\u6837\u770b\u4e00\u4e9b\u5b98\u65b9\u6587\u6863\uff0c\u56fd\u5916\u7f51\u7ad9\u90fd\u5f88\u65b9\u4fbf\uff0c\u4e5f\u53ef\u4ee5\u53ca\u65f6\u5b66\u5230\u56fd\u5916\u4e00\u4e9b\u65b0\u6280\u672f\u3002<\/p>\n
\n\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/www.baidu.com\/home\/news\/data\/newspage?source=pc&nid=10950436200541181137&n_type=1&p_from=4<\/a><\/p>\n