{"id":61602,"date":"2026-01-18T05:57:31","date_gmt":"2026-01-17T21:57:31","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/61602.html"},"modified":"2026-01-18T05:57:31","modified_gmt":"2026-01-17T21:57:31","slug":"django-flask%e5%9f%ba%e4%ba%8epython%e7%9a%84%e9%ab%98%e6%a0%a1%e4%ba%ba%e5%8a%9b%e8%b5%84%e6%ba%90%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f-%e4%ba%ba%e4%ba%8b%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/61602.html","title":{"rendered":"django-flask\u57fa\u4e8epython\u7684\u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf \u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf"},"content":{"rendered":"<\/p>\n<h4>\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>\u6458\u8981<\/li>\n<\/ul>\n<\/li>\n<li>\u5173\u4e8e\u535a\u4e3b<\/li>\n<li>\u5f00\u53d1\u6280\u672f\u8def\u7ebf<\/li>\n<li>\u76f8\u5173\u6280\u672f\u4ecb\u7ecd<\/li>\n<li>\u6838\u5fc3\u4ee3\u7801\u53c2\u8003\u793a\u4f8b<\/li>\n<li>\u7ed3\u8bba<\/li>\n<li>\u6e90\u7801lw\u83b7\u53d6\/\u540c\u884c\u53ef\u62ff\u8d27,\u62db\u6821\u56ed\u4ee3\u7406 &#xff1a;\u6587\u7ae0\u5e95\u90e8\u83b7\u53d6\u535a\u4e3b\u8054\u7cfb\u65b9\u5f0f&#xff01;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u6458\u8981<\/h4>\n<p>\u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf\u57fa\u4e8ePython\u7684Django\u6216Flask\u6846\u67b6\u5f00\u53d1&#xff0c;\u65e8\u5728\u4f18\u5316\u9ad8\u6821\u4eba\u4e8b\u7ba1\u7406\u6d41\u7a0b&#xff0c;\u63d0\u9ad8\u7ba1\u7406\u6548\u7387\u4e0e\u6570\u636e\u5b89\u5168\u6027\u3002\u7cfb\u7edf\u91c7\u7528B\/S\u67b6\u6784&#xff0c;\u7ed3\u5408MySQL\u6216PostgreSQL\u6570\u636e\u5e93&#xff0c;\u5b9e\u73b0\u6559\u804c\u5de5\u4fe1\u606f\u7684\u6570\u5b57\u5316\u7ba1\u7406&#xff0c;\u5305\u62ec\u62db\u8058\u3001\u8003\u52e4\u3001\u85aa\u8d44\u3001\u7ee9\u6548\u8bc4\u4f30\u7b49\u529f\u80fd\u6a21\u5757\u3002<\/p>\n<p>\u7cfb\u7edf\u8bbe\u8ba1\u9075\u5faa\u6a21\u5757\u5316\u539f\u5219&#xff0c;\u524d\u7aef\u91c7\u7528HTML5\u3001CSS3\u548cJavaScript&#xff08;\u6216Vue.js\/React&#xff09;&#xff0c;\u540e\u7aef\u901a\u8fc7Django REST Framework\u6216Flask-SQLAlchemy\u63d0\u4f9bAPI\u652f\u6301\u3002\u7528\u6237\u6743\u9650\u57fa\u4e8eRBAC\u6a21\u578b&#xff0c;\u533a\u5206\u7ba1\u7406\u5458\u3001\u9662\u7cfb\u8d1f\u8d23\u4eba\u548c\u666e\u901a\u6559\u804c\u5de5\u89d2\u8272&#xff0c;\u786e\u4fdd\u6570\u636e\u8bbf\u95ee\u7684\u5b89\u5168\u6027\u3002<\/p>\n<p>\u6838\u5fc3\u529f\u80fd\u5305\u62ec&#xff1a;\u6559\u804c\u5de5\u4fe1\u606f\u5f55\u5165\u4e0e\u6863\u6848\u7ba1\u7406&#xff0c;\u652f\u6301\u591a\u6761\u4ef6\u67e5\u8be2\u4e0e\u5bfc\u51faExcel&#xff1b;\u8003\u52e4\u6a21\u5757\u96c6\u6210\u4eba\u8138\u8bc6\u522b\u6216\u6307\u7eb9\u9a8c\u8bc1\u6280\u672f&#xff1b;\u85aa\u8d44\u7ba1\u7406\u81ea\u52a8\u5173\u8054\u7ee9\u6548\u4e0e\u5956\u60e9\u8bb0\u5f55&#xff0c;\u751f\u6210\u5de5\u8d44\u6761&#xff1b;\u62db\u8058\u6a21\u5757\u5b9e\u73b0\u5c97\u4f4d\u53d1\u5e03\u3001\u7b80\u5386\u7b5b\u9009\u4e0e\u9762\u8bd5\u6d41\u7a0b\u8ddf\u8e2a\u3002\u7cfb\u7edf\u8fd8\u63d0\u4f9b\u6570\u636e\u53ef\u89c6\u5316\u770b\u677f&#xff0c;\u901a\u8fc7\u56fe\u8868\u5c55\u793a\u5e08\u8d44\u7ed3\u6784\u3001\u804c\u79f0\u5206\u5e03\u7b49\u5173\u952e\u6307\u6807\u3002<\/p>\n<p>\u6280\u672f\u4eae\u70b9\u5305\u62ec\u4f7f\u7528Celery\u5f02\u6b65\u4efb\u52a1\u5904\u7406\u6279\u91cf\u64cd\u4f5c&#xff0c;Redis\u7f13\u5b58\u9ad8\u9891\u8bbf\u95ee\u6570\u636e&#xff0c;Nginx\u90e8\u7f72\u4fdd\u969c\u9ad8\u5e76\u53d1\u6027\u80fd\u3002\u7cfb\u7edf\u901a\u8fc7JWT\u5b9e\u73b0\u65e0\u72b6\u6001\u8ba4\u8bc1&#xff0c;\u5e76\u91c7\u7528AES\u52a0\u5bc6\u654f\u611f\u6570\u636e&#xff0c;\u7b26\u5408GDPR\u7b49\u6570\u636e\u4fdd\u62a4\u89c4\u8303\u3002\u6d4b\u8bd5\u9636\u6bb5\u8fd0\u7528\u5355\u5143\u6d4b\u8bd5\u4e0eSelenium\u81ea\u52a8\u5316\u6d4b\u8bd5\u786e\u4fdd\u7a33\u5b9a\u6027\u3002<\/p>\n<p>\u8be5\u7cfb\u7edf\u663e\u8457\u51cf\u5c11\u4eba\u5de5\u64cd\u4f5c\u9519\u8bef&#xff0c;\u63d0\u5347\u9ad8\u6821\u4eba\u4e8b\u51b3\u7b56\u7684\u79d1\u5b66\u6027&#xff0c;\u4e3a\u6559\u80b2\u8d44\u6e90\u4f18\u5316\u914d\u7f6e\u63d0\u4f9b\u6570\u636e\u652f\u6491&#xff0c;\u9002\u7528\u4e8e\u5404\u7c7b\u9ad8\u7b49\u9662\u6821\u53ca\u79d1\u7814\u673a\u6784\u7684\u4eba\u4e8b\u7ba1\u7406\u9700\u6c42\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117215729-696c05c92a0d0.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117215729-696c05c99a249.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117215730-696c05ca0363d.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5173\u4e8e\u535a\u4e3b<\/h3>\n<p>\u672c\u4eba\u662f\u4e13\u4e1a\u6280\u672f\u670d\u52a1&#xff0c;\u5927\u5bb6\u90fd\u8981\u751f\u6d3b&#xff0c;\u8fd9\u4e2a\u5f88\u6b63\u5e38\u3002\u6211\u548c\u5176\u4ed6\u4eba\u4e0d\u540c\u7684\u662f&#xff0c;\u6211\u662f\u6e90\u5934\u4f9b\u8d27\u5546\u3002\u5927\u5bb6\u90fd\u4e0d\u5bb9\u6613&#xff0c;\u6211\u7406\u89e3\u540c\u5b66\u4eec\u7684\u7ecf\u6d4e\u538b\u529b\u3002\u6211\u7684\u539f\u5219\u5f88\u7b80\u5355&#xff1a;\u7528\u6700\u4e13\u4e1a\u7684\u6280\u672f\u3001\u6700\u5b9e\u60e0\u7684\u4ef7\u683c\u3001\u6700\u771f\u8bda\u7684\u6001\u5ea6\u670d\u52a1\u5927\u5bb6\u3002\u65e0\u8bba\u6700\u7ec8\u5408\u4f5c\u4e0e\u5426&#xff0c;\u54b1\u4eec\u90fd\u662f\u670b\u53cb&#xff0c;\u80fd\u5e2e\u7684\u5730\u65b9\u6211\u7edd\u4e0d\u542b\u7cca\u3002\u4e70\u5356\u4e0d\u6210\u4ec1\u4e49\u5728&#xff0c;\u8fd9\u5c31\u662f\u6211\u7684\u505a\u4eba\u539f\u5219\u3002 \u56e2\u961f\u4e13\u6ce8\u4e8euniapp\u6846\u67b6,Android,Kotlin\u6846\u67b6,koa\u6846\u67b6,express\u6846\u67b6,go\u8bed\u8a00,laravel\u6846\u67b6,thinkphp\u6846\u67b6,springcloud,django,flask\u6846\u67b6,SpringBoot\u3001Vue\u3001SSM\u3001HLMT\u3001Jsp\u3001PHP\u3001Nodejs\u3001Python\u3001\u722c\u866b\u3001\u6570\u636e\u53ef\u89c6\u5316\u3001\u5c0f\u7a0b\u5e8f\u3001\u5b89\u5353app\u3001\u5927\u6570\u636e\u3001\u7269\u8054\u7f51\u3001\u673a\u5668\u5b66\u4e60\u7b49\u8bbe\u8ba1\u4e0e\u5f00\u53d1 \u5168\u7f51\u7c89\u4e1d30W&#043;&#xff0c;\u7d2f\u8ba1\u6307\u5bfc10w&#043;\u9879\u76ee&#xff0c;\u539f\u521b\u6280\u672f\u6587\u7ae02\u4e07&#043;\u7bc7&#xff0c;GitHub\u9879\u76ee\u83b7\u8d5e50W&#043; \u6838\u5fc3\u670d\u52a1&#xff1a; \u4e13\u4e1a\u6307\u5bfc\u3001\u9879\u76ee\u6e90\u7801\u5f00\u53d1\u3001\u6280\u672f\u7b54\u7591\u89e3\u60d1&#xff0c;\u7528\u5b66\u751f\u89c6\u89d2\u7406\u89e3\u5b66\u751f\u9700\u6c42&#xff0c;\u63d0\u4f9b\u6700\u8d34\u5fc3\u7684\u6280\u672f\u5e2e\u52a9\u3002<\/p>\n<h3>\u5f00\u53d1\u6280\u672f\u8def\u7ebf<\/h3>\n<p>\u5f00\u53d1\u8bed\u8a00&#xff1a;Python \u6846\u67b6&#xff1a;flask\/django \u5f00\u53d1\u8f6f\u4ef6&#xff1a;PyCharm\/vscode \u6570\u636e\u5e93&#xff1a;mysql \u6570\u636e\u5e93\u5de5\u5177&#xff1a;Navicat for mysql \u524d\u7aef\u5f00\u53d1\u6846\u67b6:vue.js \u6570\u636e\u5e93 mysql \u7248\u672c\u4e0d\u9650 \u672c\u7cfb\u7edf\u540e\u7aef\u8bed\u8a00\u6846\u67b6\u652f\u6301&#xff1a; 1 java(SSM\/springboot)-idea\/eclipse 2.Nodejs&#043;Vue.js -vscode 3.python(flask\/django)&#8211;pycharm\/vscode 4.php(thinkphp\/laravel)-hbuilderx<\/p>\n<h3>\u76f8\u5173\u6280\u672f\u4ecb\u7ecd<\/h3>\n<p>Hadoop&#xff1a;Hadoop \u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u8ba1\u7b97\u5e73\u53f0&#xff0c;\u7528\u4e8e\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u3002\u5728\u9152\u5e97\u8bc4\u8bba\u60c5\u611f\u5206\u6790\u4e2d&#xff0c;\u5b83\u8d1f\u8d23\u5b58\u50a8\u548c\u5904\u7406\u6d77\u91cf\u8bc4\u8bba\u6570\u636e&#xff0c;\u652f\u6301\u5e76\u884c\u8ba1\u7b97&#xff0c;\u63d0\u5347\u6570\u636e\u5904\u7406\u6548\u7387&#xff0c;\u4e3a\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\u8bad\u7ec3\u63d0\u4f9b\u5f3a\u5927\u7684\u6570\u636e\u652f\u6301\u3002 \u51b3\u7b56\u6811\u7b97\u6cd5&#xff1a;\u51b3\u7b56\u6811\u662f\u4e00\u79cd\u7ecf\u5178\u7684\u673a\u5668\u5b66\u4e60\u7b97\u6cd5&#xff0c;\u7528\u4e8e\u60c5\u611f\u5206\u7c7b\u3002\u5728\u9152\u5e97\u8bc4\u8bba\u60c5\u611f\u5206\u6790\u4e2d&#xff0c;\u5b83\u901a\u8fc7\u6784\u5efa\u6811\u72b6\u6a21\u578b&#xff0c;\u6839\u636e\u7279\u5f81\u5212\u5206\u60c5\u611f\u7c7b\u522b&#xff0c;\u7b80\u5355\u6613\u61c2\u4e14\u53ef\u89e3\u91ca\u6027\u5f3a&#xff0c;\u9002\u7528\u4e8e\u521d\u6b65\u60c5\u611f\u5206\u7c7b\u4efb\u52a1\u3002 \u534f\u540c\u8fc7\u6ee4&#xff1a;\u534f\u540c\u8fc7\u6ee4\u662f\u4e00\u79cd\u63a8\u8350\u7cfb\u7edf\u6280\u672f&#xff0c;\u901a\u8fc7\u5206\u6790\u7528\u6237\u7684\u5386\u53f2\u884c\u4e3a\u548c\u504f\u597d&#xff0c;\u6316\u6398\u7528\u6237\u4e4b\u95f4\u7684\u76f8\u4f3c\u6027&#xff0c;\u4e3a\u7528\u6237\u63a8\u8350\u53ef\u80fd\u611f\u5174\u8da3\u7684\u9152\u5e97\u3002\u5728\u9152\u5e97\u8bc4\u8bba\u60c5\u611f\u5206\u6790\u7cfb\u7edf\u4e2d&#xff0c;\u534f\u540c\u8fc7\u6ee4\u53ef\u7528\u4e8e\u7ed3\u5408\u60c5\u611f\u5206\u6790\u7ed3\u679c&#xff0c;\u4e3a\u7528\u6237\u7cbe\u51c6\u63a8\u8350\u9ad8\u6ee1\u610f\u5ea6\u7684\u9152\u5e97&#xff0c;\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u548c\u51b3\u7b56\u6548\u7387\u3002<\/p>\n<p>B\/S\u67b6\u6784&#xff08;Browser\/Server&#xff09;&#xff1a;B\/S\u67b6\u6784\u662f\u4e00\u79cd\u7f51\u7edc\u4f53\u7cfb\u7ed3\u6784&#xff0c;\u7528\u6237\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u670d\u52a1\u5668\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u672c\u7cfb\u7edf\u4e2d&#xff0c;\u7528\u6237\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u670d\u52a1\u5668\u4e0a\u7684Java Web\u5e94\u7528\u7a0b\u5e8f\u3002 LSTM\u7b97\u6cd5&#xff1a;LSTM&#xff08;\u957f\u77ed\u671f\u8bb0\u5fc6\u7f51\u7edc&#xff09;\u662f\u4e00\u79cd\u6df1\u5ea6\u5b66\u4e60\u7b97\u6cd5&#xff0c;\u7279\u522b\u9002\u5408\u5904\u7406\u5e8f\u5217\u6570\u636e\u3002\u5728\u9152\u5e97\u8bc4\u8bba\u60c5\u611f\u5206\u6790\u4e2d&#xff0c;LSTM\u80fd\u591f\u6355\u6349\u6587\u672c\u4e2d\u7684\u957f\u671f\u4f9d\u8d56\u5173\u7cfb&#xff0c;\u7cbe\u51c6\u8bc6\u522b\u60c5\u611f\u503e\u5411&#xff0c;\u6709\u6548\u63d0\u5347\u60c5\u611f\u5206\u6790\u7684\u51c6\u786e\u6027\u548c\u9c81\u68d2\u6027\u3002 Django\u6846\u67b6&#xff1a;Django\u662f\u4e00\u4e2a\u5f00\u653e\u6e90\u4ee3\u7801\u7684Web\u5e94\u7528\u6846\u67b6&#xff0c;\u91c7\u7528MTV&#xff08;Model-Template-View&#xff09;\u8bbe\u8ba1\u6a21\u5f0f\u3002\u5b83\u9f13\u52b1\u5feb\u901f\u5f00\u53d1\u548c\u5e72\u51c0\u3001\u5b9e\u7528\u7684\u8bbe\u8ba1\u3002\u5728\u672c\u7cfb\u7edf\u4e2d&#xff0c;\u6211\u4eec\u9009\u62e9Django\u6846\u67b6\u6765\u5b9e\u73b0\u540e\u7aef\u903b\u8f91&#xff0c;\u4e3b\u8981\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u81ea\u52a8\u5316\u529f\u80fd&#xff0c;\u5982ORM&#xff08;\u5bf9\u8c61\u5173\u7cfb\u6620\u5c04&#xff09;\u3001\u6a21\u677f\u5f15\u64ce\u3001\u8868\u5355\u5904\u7406\u7b49\u3002\u8fd9\u4e9b\u529f\u80fd\u5927\u5927\u51cf\u8f7b\u4e86\u5f00\u53d1\u8005\u7684\u5de5\u4f5c\u91cf&#xff0c;\u63d0\u9ad8\u4e86\u5f00\u53d1\u6548\u7387\u3002Django\u5177\u6709\u826f\u597d\u7684\u6269\u5c55\u6027\u548c\u5b89\u5168\u6027&#xff0c;\u652f\u6301\u591a\u79cd\u6570\u636e\u5e93\u540e\u7aef&#xff0c;\u5e76\u4e14\u6709\u5b8c\u5584\u7684\u6587\u6863\u548c\u793e\u533a\u652f\u6301\u3002 Python\u8bed\u8a00&#xff1a;Python\u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u9ad8\u7ea7\u7f16\u7a0b\u8bed\u8a00&#xff0c;\u4ee5\u5176\u7b80\u6d01\u6613\u8bfb\u7684\u8bed\u6cd5\u548c\u5f3a\u5927\u7684\u529f\u80fd\u800c\u95fb\u540d\u3002Python\u62e5\u6709\u4e30\u5bcc\u7684\u6807\u51c6\u5e93\u548c\u7b2c\u4e09\u65b9\u5e93&#xff0c;\u53ef\u4ee5\u6ee1\u8db3\u5404\u79cd\u5f00\u53d1\u9700\u6c42\u3002\u5728\u672c\u7cfb\u7edf\u4e2d&#xff0c;\u6211\u4eec\u9009\u62e9Python\u4f5c\u4e3a\u540e\u7aef\u5f00\u53d1\u8bed\u8a00&#xff0c;\u4e3b\u8981\u8003\u8651\u5230\u5176\u9ad8\u6548\u6027\u548c\u6613\u7528\u6027\u3002Python\u7684\u52a8\u6001\u7c7b\u578b\u68c0\u67e5\u548c\u81ea\u52a8\u5185\u5b58\u7ba1\u7406\u4f7f\u5f97\u5f00\u53d1\u8fc7\u7a0b\u66f4\u52a0\u987a\u7545&#xff0c;\u51cf\u5c11\u4e86\u4ee3\u7801\u91cf\u548c\u51fa\u9519\u6982\u7387\u3002Python\u793e\u533a\u6d3b\u8dc3&#xff0c;\u6709\u5927\u91cf\u7684\u5f00\u6e90\u9879\u76ee\u548c\u6559\u7a0b\u53ef\u4ee5\u53c2\u8003&#xff0c;\u6709\u52a9\u4e8e\u89e3\u51b3\u5f00\u53d1\u4e2d\u9047\u5230\u7684\u95ee\u9898\u3002 MySQL&#xff1a;MySQL\u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u5f00\u6e90\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf&#xff0c;\u7528\u4e8e\u5b58\u50a8\u548c\u7ba1\u7406\u6570\u636e\u3002\u5728\u672c\u7cfb\u7edf\u4e2d&#xff0c;MySQL\u88ab\u7528\u4f5c\u6570\u636e\u5e93&#xff0c;\u8d1f\u8d23\u5b58\u50a8\u7cfb\u7edf\u7684\u6570\u636e\u3002 Scrapy&#xff1a;Scrapy \u662f\u4e00\u6b3e\u9ad8\u6548\u7684\u7f51\u7edc\u722c\u866b\u6846\u67b6&#xff0c;\u7528\u4e8e\u722c\u53d6\u9152\u5e97\u8bc4\u8bba\u6570\u636e\u3002\u5b83\u80fd\u591f\u5feb\u901f\u5b9a\u4f4d\u76ee\u6807\u7f51\u7ad9&#xff0c;\u63d0\u53d6\u8bc4\u8bba\u6587\u672c\u5e76\u4fdd\u5b58\u4e3a\u7ed3\u6784\u5316\u6570\u636e&#xff0c;\u4e3a\u60c5\u611f\u5206\u6790\u63d0\u4f9b\u4e30\u5bcc\u7684\u539f\u59cb\u7d20\u6750&#xff0c;\u786e\u4fdd\u6570\u636e\u91c7\u96c6\u7684\u9ad8\u6548\u6027\u548c\u51c6\u786e\u6027\u3002 \u6570\u636e\u6e05\u6d17&#xff1a;\u6570\u636e\u6e05\u6d17\u662f\u60c5\u611f\u5206\u6790\u7684\u91cd\u8981\u73af\u8282&#xff0c;\u7528\u4e8e\u53bb\u9664\u9152\u5e97\u8bc4\u8bba\u4e2d\u7684\u566a\u58f0\u6570\u636e&#xff0c;\u5982\u65e0\u5173\u7b26\u53f7\u3001\u91cd\u590d\u5185\u5bb9\u7b49\u3002\u901a\u8fc7\u6e05\u6d17&#xff0c;\u786e\u4fdd\u8f93\u5165\u6a21\u578b\u7684\u6570\u636e\u8d28\u91cf&#xff0c;\u4ece\u800c\u63d0\u9ad8\u60c5\u611f\u5206\u6790\u7684\u51c6\u786e\u6027\u548c\u53ef\u9760\u6027\u3002 Vue.js&#xff1a;\u5c5e\u4e8e\u8f7b\u91cf\u7ea7\u7684\u524d\u7aefJavaScript\u6846\u67b6&#xff0c;\u5b83\u91c7\u7528\u6570\u636e\u9a71\u52a8\u7684\u65b9\u5f0f\u6784\u5efa\u7528\u6237\u754c\u9762\u3002Vue.js\u7684\u6838\u5fc3\u5e93\u4e13\u6ce8\u4e8e\u89c6\u56fe\u5c42&#xff0c;\u6613\u4e8e\u5b66\u4e60\u548c\u96c6\u6210&#xff0c;\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ec4\u4ef6\u5e93\u548c\u5de5\u5177\u94fe&#xff0c;\u652f\u6301\u5355\u6587\u4ef6\u7ec4\u4ef6\u548c\u70ed\u6a21\u5757\u66ff\u6362&#xff0c;\u6781\u5927\u5730\u63d0\u5347\u4e86\u5f00\u53d1\u6548\u7387\u548c\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<h3>\u6838\u5fc3\u4ee3\u7801\u53c2\u8003\u793a\u4f8b<\/h3>\n<p>\u9884\u6d4b\u7b97\u6cd5\u4ee3\u7801\u5982\u4e0b&#xff08;\u793a\u4f8b&#xff09;&#xff1a;<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">booksinfoforecast_forecast<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">import<\/span> datetime<br \/>\n    <span class=\"token keyword\">if<\/span> request<span class=\"token punctuation\">.<\/span>method <span class=\"token keyword\">in<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;POST&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;GET&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">:<\/span><span class=\"token comment\">#get\u3001post\u8bf7\u6c42<\/span><br \/>\n        msg <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#039;code&#039;<\/span><span class=\"token punctuation\">:<\/span> normal_code<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#039;message&#039;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;success&#039;<\/span><span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token comment\">#\u83b7\u53d6\u6570\u636e\u96c6<\/span><br \/>\n        req_dict <span class=\"token operator\">&#061;<\/span> session<span class=\"token punctuation\">.<\/span>get<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;req_dict&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        connection <span class=\"token operator\">&#061;<\/span> pymysql<span class=\"token punctuation\">.<\/span>connect<span class=\"token punctuation\">(<\/span><span class=\"token operator\">**<\/span>mysql_config<span class=\"token punctuation\">)<\/span><br \/>\n        query <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;SELECT author,type,status,wordcount, monthcount FROM booksinfo&#034;<\/span><br \/>\n        <span class=\"token comment\">#\u5904\u7406\u7f3a\u5931\u503c<\/span><br \/>\n        data <span class=\"token operator\">&#061;<\/span> pd<span class=\"token punctuation\">.<\/span>read_sql<span class=\"token punctuation\">(<\/span>query<span class=\"token punctuation\">,<\/span> connection<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>dropna<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token builtin\">id<\/span> <span class=\"token operator\">&#061;<\/span> req_dict<span class=\"token punctuation\">.<\/span>pop<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;id&#039;<\/span><span class=\"token punctuation\">,<\/span><span class=\"token boolean\">None<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        req_dict<span class=\"token punctuation\">.<\/span>pop<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;addtime&#039;<\/span><span class=\"token punctuation\">,<\/span><span class=\"token boolean\">None<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        df <span class=\"token operator\">&#061;<\/span> to_forecast<span class=\"token punctuation\">(<\/span>data<span class=\"token punctuation\">,<\/span>req_dict<span class=\"token punctuation\">,<\/span><span class=\"token boolean\">None<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token comment\">#\u521b\u5efa\u6570\u636e\u5e93\u8fde\u63a5,\u5c06DataFrame \u63d2\u5165\u6570\u636e\u5e93<\/span><br \/>\n        connection_string <span class=\"token operator\">&#061;<\/span> <span class=\"token string-interpolation\"><span class=\"token string\">f&#034;mysql&#043;pymysql:\/\/<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>mysql_config<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;user&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">:<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>mysql_config<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;password&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">&#064;<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>mysql_config<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;host&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">:<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>mysql_config<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;port&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">\/<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>mysql_config<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;database&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">&#034;<\/span><\/span><br \/>\n        engine <span class=\"token operator\">&#061;<\/span> create_engine<span class=\"token punctuation\">(<\/span>connection_string<span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">try<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            <span class=\"token keyword\">if<\/span> req_dict <span class=\"token punctuation\">:<\/span><br \/>\n                <span class=\"token comment\">#\u904d\u5386 DataFrame&#xff0c;\u5e76\u9010\u884c\u66f4\u65b0\u6570\u636e\u5e93<\/span><br \/>\n                <span class=\"token keyword\">with<\/span> engine<span class=\"token punctuation\">.<\/span>connect<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">as<\/span> connection<span class=\"token punctuation\">:<\/span><br \/>\n                    <span class=\"token keyword\">for<\/span> index<span class=\"token punctuation\">,<\/span> row <span class=\"token keyword\">in<\/span> df<span class=\"token punctuation\">.<\/span>iterrows<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n                        sql <span class=\"token operator\">&#061;<\/span> <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;<br \/>\n                        INSERT INTO booksinfoforecast (id<br \/>\n                        ,monthcount<br \/>\n                        )<br \/>\n                        VALUES (%(id)s<br \/>\n                    ,%(monthcount)s<br \/>\n                        )<br \/>\n                        ON DUPLICATE KEY UPDATE<br \/>\n                        monthcount &#061; VALUES(monthcount)<br \/>\n                        &#034;&#034;&#034;<\/span><br \/>\n                        connection<span class=\"token punctuation\">.<\/span>execute<span class=\"token punctuation\">(<\/span>sql<span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#039;id&#039;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token builtin\">id<\/span><br \/>\n                            <span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#039;monthcount&#039;<\/span><span class=\"token punctuation\">:<\/span> row<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;monthcount&#039;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n                        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><br \/>\n            <span class=\"token keyword\">else<\/span><span class=\"token punctuation\">:<\/span><br \/>\n                df<span class=\"token punctuation\">.<\/span>to_sql<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;booksinfoforecast&#039;<\/span><span class=\"token punctuation\">,<\/span> con<span class=\"token operator\">&#061;<\/span>engine<span class=\"token punctuation\">,<\/span> if_exists<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;append&#039;<\/span><span class=\"token punctuation\">,<\/span> index<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/span><span class=\"token punctuation\">)<\/span><br \/>\n            <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u6570\u636e\u66f4\u65b0\u6210\u529f&#xff01;&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">except<\/span> Exception <span class=\"token keyword\">as<\/span> e<span class=\"token punctuation\">:<\/span><br \/>\n            <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string-interpolation\"><span class=\"token string\">f&#034;\u53d1\u751f\u9519\u8bef: <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>e<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">&#034;<\/span><\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">finally<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            engine<span class=\"token punctuation\">.<\/span>dispose<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># \u5173\u95ed\u6570\u636e\u5e93\u8fde\u63a5<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> jsonify<span class=\"token punctuation\">(<\/span>msg<span class=\"token punctuation\">)<\/span><\/p>\n<h3>\u7ed3\u8bba<\/h3>\n<p>\u672c\u7cfb\u7edf\u8fd8\u652f\u6301springboot\/laravel\/express\/nodejs\/thinkphp\/flask\/django\/ssm\/springcloud \u5fae\u670d\u52a1\u5206\u5e03\u5f0f\u7b49\u6846\u67b6,\u540c\u884c\u53ef\u62ff\u8d27,\u62db\u6821\u56ed\u4ee3\u7406 \u5927\u6570\u636e\u6307\u7684\u5c31\u662f\u5c3d\u53ef\u80fd\u7684\u628a\u4fe1\u606f\u6536\u96c6\u7edf\u8ba1\u8d77\u6765\u8fdb\u884c\u5206\u6790,\u6765\u5206\u6790\u4f60\u7684\u884c\u4e3a\u548c\u4f60\u5468\u8fb9\u7684\u4eba\u7684\u884c\u4e3a\u3002\u5927\u6570\u636e\u7684\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e\u5b58\u50a8\u548c\u5206\u6790\u6d77\u91cf\u6570\u636e&#xff0c;\u5927\u6570\u636e\u6280\u672f\u7684\u6218\u7565\u610f\u4e49\u4e0d\u5728\u4e8e\u638c\u63e1\u5927\u91cf\u6570\u636e\u4fe1\u606f&#xff0c;\u800c\u5728\u4e8e\u4e13\u4e1a\u5904\u7406\u8fd9\u4e9b\u6709\u610f\u4e49\u7684\u6570\u636e\u3002\u770b\u4f3c\u5927\u6570\u636e\u662f\u4e00\u4e2a\u5f88\u9ad8\u5927\u4e0a\u7684\u611f\u89c9&#xff0c;\u548c\u6211\u4eec\u666e\u901a\u4eba\u7684\u751f\u6d3b\u76f8\u5dee\u751a\u8fdc&#xff0c;\u4f46\u662f\u5176\u5b9e\u4e0d\u7136!\u5927\u6570\u636e\u76ee\u524d\u5df2\u7ecf\u5b58\u5728\u6211\u4eec\u751f\u6d3b\u4e2d\u7684\u5404\u79cd\u89d2\u843d\u91cc\u4e86, \u6570\u636e\u83b7\u53d6\u65b9\u6cd5 \u6570\u636e\u96c6\u6765\u6e90\u5916\u5356\u63a8\u8350\u7684\u76f8\u5173\u6570\u636e&#xff0c;\u901a\u8fc7python\u4e2d\u7684xpath\u83b7\u53d6html\u4e2d\u7684\u6570\u636e\u3002 \u6570\u636e\u9884\u5904\u7406\u8bbe\u8ba1 \u5bf9\u4e8e\u722c\u53d6\u6570\u636e\u91cf\u4e0d\u5927\u7684\u5185\u5bb9\u53ef\u4ee5\u4f7f\u7528CSV\u5e93\u6765\u5b58\u50a8\u6570\u636e&#xff0c;\u5c06\u5176\u5b58\u4e3aCSV\u6587\u4ef6\u683c\u5f0f&#xff0c;\u518d\u5bf9\u6570\u636e\u8fdb\u884c\u6570\u636e\u9884\u5904\u7406&#xff0c;\u4e5f\u53ef\u901a\u8fc7\u4ee3\u7801\u8fdb\u884c\u6570\u636e\u9884\u5904\u7406\u3002 &#xff08;1&#xff09;\u6570\u636e\u83b7\u53d6\u677f\u5757 \u6570\u636e\u83b7\u53d6\u677f\u5757\u529f\u80fd\u4e3b\u8981\u662f\u4f9d\u636e\u5206\u6790\u76ee\u7684\u53ca\u8981\u8fbe\u5230\u7684\u76ee\u6807&#xff0c;\u786e\u5b9a\u83b7\u53d6\u7684\u6570\u636e\u79cd\u7c7b&#xff0c;\u5e76\u4f7f\u7528\u76f4\u63a5\u83b7\u53d6\u6570\u636e\u6587\u4ef6\u65b9\u5f0f\u6216\u722c\u866b\u65b9\u5f0f\u83b7\u53d6\u539f\u59cb\u6570\u636e\u3002 &#xff08;2&#xff09;\u6570\u636e\u9884\u5904\u7406\u677f\u5757 \u6570\u636e\u9884\u5904\u7406\u677f\u5757\u529f\u80fd\u662f\u5bf9\u83b7\u53d6\u5230\u7684\u6570\u636e\u8fdb\u884c\u9884\u5904\u7406\u64cd\u4f5c&#xff1a;\u5c06\u91cd\u590d\u7684\u5b57\u6bb5\u7b5b\u9009&#xff0c;\u5c06\u8fc7\u77ed\u5e76\u4e14\u6ca1\u6709\u5b9e\u9645\u610f\u4e49\u7684\u6570\u636e\u8fdb\u884c\u8fc7\u6ee4&#xff0c;\u9009\u62e9\u91cd\u8981\u5b57\u6bb5&#xff0c;\u6807\u51c6\u5316\u5904\u7406&#xff0c;\u5f02\u5e38\u503c\u5904\u7406\u7b49\u9884\u5904\u7406\u64cd\u4f5c\u3002 &#xff08;3&#xff09;\u6570\u636e\u5b58\u50a8\u677f\u5757 \u6570\u636e\u5b58\u50a8\u677f\u5757\u4e3b\u8981\u529f\u80fd\u662f\u628a\u7ecf\u8fc7\u9884\u5904\u7406\u7684\u6570\u636e\u6301\u4e45\u5316\u5b58\u50a8&#xff0c;\u4ee5\u4fbf\u4e8e\u540e\u7eed\u5206\u6790\u3002 &#xff08;4&#xff09;\u6570\u636e\u5206\u6790\u677f\u5757 \u6570\u636e\u5206\u6790\u677f\u5757\u4e3b\u8981\u529f\u80fd\u662f\u6839\u636e\u5206\u6790\u76ee\u6807&#xff0c;\u627e\u51fa\u6570\u636e\u4e2d\u5b57\u6bb5\u4e4b\u95f4\u7684\u5185\u5728\u5173\u7cfb&#xff0c;\u4e0e\u89c4\u5f8b\u3002 &#xff08;5&#xff09;\u6570\u636e\u53ef\u89c6\u5316\u677f\u5757 \u6570\u636e\u53ef\u89c6\u5316\u677f\u5757\u4e3b\u8981\u529f\u80fd\u662f\u4f7f\u7528\u9002\u5f53\u7684\u56fe\u6807\u5c55\u73b0\u65b9\u5f0f&#xff0c;\u628a\u6570\u636e\u7684\u5185\u5728\u5173\u7cfb\u3001\u89c4\u5f8b\u5c55\u73b0\u51fa\u6765\u3002<\/p>\n<h3>\u6e90\u7801lw\u83b7\u53d6\/\u540c\u884c\u53ef\u62ff\u8d27,\u62db\u6821\u56ed\u4ee3\u7406 &#xff1a;\u6587\u7ae0\u5e95\u90e8\u83b7\u53d6\u535a\u4e3b\u8054\u7cfb\u65b9\u5f0f&#xff01;<\/h3>\n<p><font color=\"red\" size=\"&#043;1\">\u9700\u8981\u6210\u54c1\u6216\u8005\u5b9a\u5236&#xff0c;\u6587\u7ae0\u6700\u4e0b\u65b9\u540d\u7247\u8054\u7cfb\u6211\u5373\u53ef~ \u6240\u6709\u9879\u76ee\u90fd\u7ecf\u8fc7\u6d4b\u8bd5\u5b8c\u5584&#xff0c;\u672c\u7cfb\u7edf\u5305\u4fee\u6539\u65f6\u95f4\u548c\u6807\u9898,\u5305\u5b89\u88c5\u90e8\u7f72\u8fd0\u884c\u8c03\u8bd5,\u4e0d\u6ee1\u610f\u7684\u53ef\u4ee5\u5b9a\u5236 <\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55\u6458\u8981\u5173\u4e8e\u535a\u4e3b\u5f00\u53d1\u6280\u672f\u8def\u7ebf\u76f8\u5173\u6280\u672f\u4ecb\u7ecd\u6838\u5fc3\u4ee3\u7801\u53c2\u8003\u793a\u4f8b\u7ed3\u8bba\u6e90\u7801lw\u83b7\u53d6\/\u540c\u884c\u53ef\u62ff\u8d27,\u62db\u6821\u56ed\u4ee3\u7406 &#xff1a;\u6587\u7ae0\u5e95\u90e8\u83b7\u53d6\u535a\u4e3b\u8054\u7cfb\u65b9\u5f0f&#xff01;\u6458\u8981<br \/>\n\u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf\u57fa\u4e8ePython\u7684Django\u6216Flask\u6846\u67b6\u5f00\u53d1&#xff0c;\u65e8\u5728\u4f18\u5316\u9ad8\u6821\u4eba\u4e8b\u7ba1\u7406\u6d41\u7a0b&#xff0c;\u63d0\u9ad8\u7ba1\u7406\u6548\u7387\u4e0e\u6570\u636e\u5b89\u5168\u6027\u3002\u7cfb\u7edf\u91c7\u7528B\/S\u67b6\u6784&#xff0c;\u7ed3\u5408MySQL\u6216PostgreSQL\u6570\u636e\u5e93&#xff0c;\u5b9e\u73b0\u6559\u804c\u5de5\u4fe1\u606f\u7684\u6570\u5b57\u5316\u7ba1\u7406&#xff0c;\u5305\u62ec\u62db\u8058\u3001\u8003\u52e4\u3001\u85aa\u8d44\u3001\u7ee9\u6548\u8bc4\u4f30\u7b49<\/p>\n","protected":false},"author":2,"featured_media":61599,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[890,153,81],"topic":[],"class_list":["post-61602","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-django","tag-flask","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>django-flask\u57fa\u4e8epython\u7684\u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf \u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf - \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\/61602.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"django-flask\u57fa\u4e8epython\u7684\u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf \u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f55\u6458\u8981\u5173\u4e8e\u535a\u4e3b\u5f00\u53d1\u6280\u672f\u8def\u7ebf\u76f8\u5173\u6280\u672f\u4ecb\u7ecd\u6838\u5fc3\u4ee3\u7801\u53c2\u8003\u793a\u4f8b\u7ed3\u8bba\u6e90\u7801lw\u83b7\u53d6\/\u540c\u884c\u53ef\u62ff\u8d27,\u62db\u6821\u56ed\u4ee3\u7406 &#xff1a;\u6587\u7ae0\u5e95\u90e8\u83b7\u53d6\u535a\u4e3b\u8054\u7cfb\u65b9\u5f0f&#xff01;\u6458\u8981 \u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf\u57fa\u4e8ePython\u7684Django\u6216Flask\u6846\u67b6\u5f00\u53d1&#xff0c;\u65e8\u5728\u4f18\u5316\u9ad8\u6821\u4eba\u4e8b\u7ba1\u7406\u6d41\u7a0b&#xff0c;\u63d0\u9ad8\u7ba1\u7406\u6548\u7387\u4e0e\u6570\u636e\u5b89\u5168\u6027\u3002\u7cfb\u7edf\u91c7\u7528B\/S\u67b6\u6784&#xff0c;\u7ed3\u5408MySQL\u6216PostgreSQL\u6570\u636e\u5e93&#xff0c;\u5b9e\u73b0\u6559\u804c\u5de5\u4fe1\u606f\u7684\u6570\u5b57\u5316\u7ba1\u7406&#xff0c;\u5305\u62ec\u62db\u8058\u3001\u8003\u52e4\u3001\u85aa\u8d44\u3001\u7ee9\u6548\u8bc4\u4f30\u7b49\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/61602.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-17T21:57:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117215729-696c05c92a0d0.jpg\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61602.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/61602.html\",\"name\":\"django-flask\u57fa\u4e8epython\u7684\u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf \u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-17T21:57:31+00:00\",\"dateModified\":\"2026-01-17T21:57:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/61602.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/61602.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61602.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"django-flask\u57fa\u4e8epython\u7684\u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf \u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf\"}]},{\"@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":"django-flask\u57fa\u4e8epython\u7684\u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf \u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf - \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\/61602.html","og_locale":"zh_CN","og_type":"article","og_title":"django-flask\u57fa\u4e8epython\u7684\u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf \u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee\u5f55\u6458\u8981\u5173\u4e8e\u535a\u4e3b\u5f00\u53d1\u6280\u672f\u8def\u7ebf\u76f8\u5173\u6280\u672f\u4ecb\u7ecd\u6838\u5fc3\u4ee3\u7801\u53c2\u8003\u793a\u4f8b\u7ed3\u8bba\u6e90\u7801lw\u83b7\u53d6\/\u540c\u884c\u53ef\u62ff\u8d27,\u62db\u6821\u56ed\u4ee3\u7406 &#xff1a;\u6587\u7ae0\u5e95\u90e8\u83b7\u53d6\u535a\u4e3b\u8054\u7cfb\u65b9\u5f0f&#xff01;\u6458\u8981 \u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf\u57fa\u4e8ePython\u7684Django\u6216Flask\u6846\u67b6\u5f00\u53d1&#xff0c;\u65e8\u5728\u4f18\u5316\u9ad8\u6821\u4eba\u4e8b\u7ba1\u7406\u6d41\u7a0b&#xff0c;\u63d0\u9ad8\u7ba1\u7406\u6548\u7387\u4e0e\u6570\u636e\u5b89\u5168\u6027\u3002\u7cfb\u7edf\u91c7\u7528B\/S\u67b6\u6784&#xff0c;\u7ed3\u5408MySQL\u6216PostgreSQL\u6570\u636e\u5e93&#xff0c;\u5b9e\u73b0\u6559\u804c\u5de5\u4fe1\u606f\u7684\u6570\u5b57\u5316\u7ba1\u7406&#xff0c;\u5305\u62ec\u62db\u8058\u3001\u8003\u52e4\u3001\u85aa\u8d44\u3001\u7ee9\u6548\u8bc4\u4f30\u7b49","og_url":"https:\/\/www.wsisp.com\/helps\/61602.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-17T21:57:31+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117215729-696c05c92a0d0.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/61602.html","url":"https:\/\/www.wsisp.com\/helps\/61602.html","name":"django-flask\u57fa\u4e8epython\u7684\u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf \u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-17T21:57:31+00:00","dateModified":"2026-01-17T21:57:31+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/61602.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/61602.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/61602.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"django-flask\u57fa\u4e8epython\u7684\u9ad8\u6821\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf \u4eba\u4e8b\u7ba1\u7406\u7cfb\u7edf"}]},{"@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\/61602","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=61602"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/61602\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/61599"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=61602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=61602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=61602"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=61602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}