{"id":5952,"date":"2020-07-27T09:14:33","date_gmt":"2020-07-27T01:14:33","guid":{"rendered":"https:\/\/vip.fxxkpython.com\/?p=5952"},"modified":"2020-07-28T14:20:04","modified_gmt":"2020-07-28T06:20:04","slug":"ce04f9c54f","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=5952","title":{"rendered":"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684"},"content":{"rendered":"<div class=\"bpp-post-content\">\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;\" ><br  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u5c0f\u5e05b\u4eca\u5929\u60f3\u8ddf\u4f60\u804a\u804a RESTful API \u8fd9\u73a9\u610f\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528 Python \u5feb\u901f\u521b\u5efa\u4f60\u7684 API \u7ed9\u522b\u4eba\u8c03\u7528\u3002<br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u4f60\u5e94\u8be5\u7ecf\u5e38\u53bb\u8c03\u7528\u8fc7 API \uff0c\u901a\u8fc7\u4e00\u5b9a\u7684\u89c4\u5219\u5c31\u80fd\u5feb\u901f\u4f7f\u7528\u522b\u4eba\u63d0\u4f9b\u7684\u670d\u52a1\uff0c\u6bd4\u5982\u4f60\u60f3\u8981\u4f7f\u7528\u4eba\u8138\u8eab\u4efd\u8bc1\u6bd4\u5bf9\uff0c\u5c31\u6709\u76f8\u5e94\u7684 API \u4f9b\u4f60\u4f7f\u7528\uff1a<br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;padding: 0px 0.5em;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"box-shadow: rgb(210, 210, 210) 0em 0em 0.5em 0px;font-size: 17px;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python8-1595912603.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u7136\u540e\u4f60\u53ea\u8981\u8c03\u7528\u8fd9\u4e2a\u63a5\u53e3\u5c31\u80fd\u5feb\u901f\u5b9e\u73b0\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;padding: 0px 0.5em;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"box-shadow: rgb(210, 210, 210) 0em 0em 0.5em 0px;font-size: 17px;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python3-1595912603.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u8fd4\u56de\u7ed3\u679c\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;padding: 0px 0.5em;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"box-shadow: rgb(210, 210, 210) 0em 0em 0.5em 0px;font-size: 17px;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python1-1595912603.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u8fd9\u6837\u505a\u7684\u597d\u5904\u5c31\u662f\uff0c\u6211\u4eec\u5728\u540e\u7aef\u53ea\u9700\u8981\u63d0\u4f9b\u63a5\u53e3\uff0c\u7136\u540e\u524d\u7aef\u4e0d\u7ba1\u662f\u624b\u673a\u3001PC\u3001\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7b49\uff0c\u90fd\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u63a5\u53e3\u5b9e\u73b0\u5177\u4f53\u7684\u529f\u80fd\uff0c\u8fd9\u6837\u7684\u8bdd\u524d\u540e\u7aef\u5c31\u53ef\u4ee5\u505a\u5230\u4e92\u4e0d \u201c\u5e72\u6d89\u201d\uff0c\u5206\u79bb\u90e8\u7f72\u90fd\u53ef\u4ee5\u3002<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u90a3\u4e48\u6211\u4eec\u5982\u4f55\u4f7f\u7528 Python \u53bb\u5b9e\u73b0\u7c7b\u4f3c\u8fd9\u6837\u7684 API \u63a5\u53e3\uff0c\u63d0\u4f9b\u670d\u52a1\u7ed9\u522b\u4eba\u4f7f\u7528\u5462\uff1fRESTful API \u53c8\u662f\u4e2a\u4ec0\u4e48\u9b3c\uff1f<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u90a3\u4e48\u63a5\u4e0b\u6765\u5c31\u662f\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;text-align: center;\"><strong><span style=\"background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\">\u5b66\u4e60 python \u7684\u6b63\u786e\u59ff\u52bf<\/span><\/strong><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;text-align: center;\"><strong><span style=\"background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\"><br  \/><\/span><\/strong><\/section>\n<p style=\"text-align: center;padding: 0px 0.5em;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"box-shadow: rgb(210, 210, 210) 0em 0em 0.5em 0px;font-size: 17px;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python8-1595912604.jpeg\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;text-align: center;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><strong><span style=\"background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\">\u4ec0\u4e48\u662f RESTful API\uff1f<\/span><\/strong><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><strong><span style=\"background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\"><br  \/><\/span><\/strong><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u867d\u7136\u8bf4 API \u4f60\u53ef\u4ee5\u81ea\u5df1\u5b9a\u5236\uff0c\u4f46\u662f\u603b\u4e0d\u80fd\u5199\u6210\u7c7b\u4f3c\u8fd9\u6837\u7684\u5427\uff1a<br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;padding: 0px 0.5em;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"box-shadow: rgb(210, 210, 210) 0em 0em 0.5em 0px;font-size: 17px;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python9-1595912605.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u5f80\u5f80\uff0c\u524d\u540e\u7aef\u7a0b\u5e8f\u5458\u7684\u77db\u76fe\u5c31\u6b64\u4ea7\u751f&#8230;<br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u524d\u7aef\uff1a<br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;text-align: center;\"><img decoding=\"async\"     src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python4-1595912605.gif\" class=\" aligncenter\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u540e\u7aef\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;text-align: center;\"><img decoding=\"async\"     src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python10-1595912606.gif\" class=\" aligncenter\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u6240\u4ee5\uff0c\u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\uff0c\u800c RESTful API \u5c31\u662f\u4e00\u79cd\u6d41\u884c\u4e14\u53cb\u597d\u7684\u98ce\u683c\uff0c\u5b83\u4e3b\u8981\u7528\u6765\u7ea6\u675f API \u7684\u5199\u6cd5\uff0c\u8ba9\u522b\u4eba\u4f7f\u7528\u8d77\u6765\u80fd\u611f\u5230\u6e05\u6670\uff0c\u7b80\u6d01\uff0c\u4e00\u76ee\u4e86\u7136\uff0c\u4f7f\u7528\u65b9\u4fbf\u3002<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u50cf\u8fd9\u6837\uff1a<br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><span style=\"font-size: 14px;\">\u6211\u4eec\u5b9a\u4e49\u7684 URI \u9700\u8981\u6e05\u6670\u6613\u4e8e\u7406\u89e3\uff0c\u4f8b\u5982\uff1a<\/span><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><span style=\"font-size: 10px;\">&nbsp;https:\/\/api.fxxkpython.com\/shop\/products\/list&nbsp;<\/span><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><span style=\"font-size: 14px;\">\u8fd9\u6837\u6211\u4eec\u4e00\u773c\u5c31\u80fd\u660e\u767d\u8fd9\u662f\u8bf7\u6c42\u5546\u54c1\u6570\u636e\u5217\u8868\u3002<\/span><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><span style=\"font-size: 14px;\">\u5c3d\u91cf\u901a\u8fc7 JSON \u6216\u8005 XML \u6765\u4f20\u9012\u6570\u636e\u5bf9\u8c61\u548c\u5c5e\u6027\u3002<\/span><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><span style=\"font-size: 14px;\">\u660e\u786e\u7684\u4f7f\u7528 HTTP \u65b9\u6cd5\uff08\u4f8b\u5982\uff0cget\u3001post\u3001put\u548cdelete\uff09\u3002<\/span><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><span style=\"font-size: 14px;\">\u65e0\u72b6\u6001\uff0c\u5728\u8bf7\u6c42\u7684\u65f6\u5019\uff0c\u670d\u52a1\u7aef\u4e0d\u5b58\u50a8\u5ba2\u6237\u7aef\u7684\u4e0a\u4e0b\u6587\u72b6\u6001\u3002<\/span><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><span style=\"font-size: 14px;\"><br  \/><\/span><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><span style=\"font-size: 14px;\"><br  \/><\/span><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><strong style=\"letter-spacing: 3px;white-space: normal;\"><span style=\"background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\">Python \u5982\u4f55\u521b\u5efa RESTful API\uff1f<\/span><\/strong><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u76f8\u4fe1\u4f60\u5bf9 Python \u7684 web \u6846\u67b6\u6709\u4e00\u5b9a\u7684\u4e86\u89e3\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p><br mpa-from-tpl=\"t\"  \/><\/p>\n<section  mpa-from-tpl=\"t\">\n<section mpa-from-tpl=\"t\">\n<article style=\"border-width: 0px;border-style: initial;border-color: initial;margin: 5px auto;\">\n<section mpa-from-tpl=\"t\">\n<section style=\"display: inline-block;width: 100%;vertical-align: top;overflow-x: auto;overflow-y: hidden;\" mpa-from-tpl=\"t\">\n<section style=\"width: 400%;min-width: 100%;max-width: 400% !important;\" mpa-from-tpl=\"t\">\n<section style=\"display: inline-block;width: 25%;vertical-align: top;\" mpa-from-tpl=\"t\">\n<section style=\"text-align: center;padding: 0px;\" mpa-from-tpl=\"t\"><img decoding=\"async\"         style=\"vertical-align: top;width: 578px;height: 578px;visibility: visible !important;box-shadow: none;font-size: 17px;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python6-1595912606.png\" class=\" aligncenter\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/section>\n<\/section>\n<section style=\"display: inline-block;width: 25%;vertical-align: top;\" mpa-from-tpl=\"t\">\n<section style=\"text-align: center;\" mpa-from-tpl=\"t\"><img decoding=\"async\"         style=\"vertical-align: top;width: 578px;height: 578px;visibility: visible !important;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python4-1595912608.png\" class=\" aligncenter\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/section>\n<\/section>\n<section style=\"display: inline-block;width: 25%;vertical-align: top;\" mpa-from-tpl=\"t\">\n<section style=\"text-align: center;\" mpa-from-tpl=\"t\"><img decoding=\"async\"         style=\"vertical-align: top;width: 578px;height: 578px;visibility: visible !important;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python6-1595912609.png\" class=\" aligncenter\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/section>\n<\/section>\n<section style=\"display: inline-block;width: 25%;vertical-align: top;\" mpa-from-tpl=\"t\">\n<section style=\"text-align: center;\" mpa-from-tpl=\"t\"><img decoding=\"async\"         style=\"vertical-align: top;width: 578px;height: 578px;visibility: visible !important;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python2-1595912610.png\" class=\" aligncenter\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"width: 100%;line-height: 30px;text-align: center;\" mpa-from-tpl=\"t\">\n<p style=\"font-size: 12px;color: rgba(111, 112, 118, 0.952941);min-width:1px;\">\uff08\u6765\u81ea\u89c6\u9891\u53f7\uff1a\u5b66\u4e60python\u7684\u6b63\u786e\u59ff\u52bf\uff09<\/p>\n<\/section>\n<\/section>\n<\/article>\n<\/section>\n<p><br  \/><\/p>\n<\/section>\n<p><br mpa-from-tpl=\"t\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u800c\u4eca\u5929\u8981\u7ed9\u4f60\u4ecb\u7ecd\u7684\u662f\u57fa\u4e8e Flask \u6846\u67b6\u5199\u7684\u8f7b\u91cf\u7ea7\u989drest API \u6846\u67b6\uff1aFlaskRESTful \uff0c\u5b83\u6613\u4e8e\u4f7f\u7528\uff0c\u5199\u6cd5\u548c Flask \u7c7b\u4f3c\uff0c\u4f60\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5728\u4f60\u9879\u76ee\u4e2d\u7684 ORM \u5c42\u4e2d\u4f7f\u7528\u5b83\u3002<br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python5-1595912611.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u63a5\u4e0b\u6765\u4e00\u8d77\u770b\u770b\u5b98\u65b9\u63d0\u4f9b\u7684\u4f8b\u5b50\uff0c\u7b80\u5355\u6f14\u793a\u4e00\u4e0b\u5b83\u7684\u4f7f\u7528\u3002<br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u5bfc\u5165\u76f8\u5e94\u7684\u5e93\uff0c\u5b9a\u4e49\u7c7b\u8d44\u6e90\uff0c\u5728\u91cc\u9762\u53ef\u4ee5\u4f7f\u7528 http \u7684 get \u3001put \u65b9\u6cd5\u5b9a\u4e49\u63a5\u53e3\uff0c\u63a5\u7740\u901a\u8fc7 api \u6dfb\u52a0\u8d44\u6e90\u5373\u53ef\u8f7b\u677e\u5b9e\u73b0\u4e00\u4e2a API \u63a5\u53e3\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python7-1595912611.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u8fd0\u884c\u8d77\u6765\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python7-1595912612.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u8bbf\u95ee\uff1a<br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python2-1595912612.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u521a\u8bf4\u4e86\uff0c\u4f60\u53ea\u8981\u5b9a\u4e49\u597d\u8d44\u6e90\u7c7b\uff0c\u5728\u91cc\u9762\u53ef\u4ee5\u5199\u591a\u4e2a http \u7684 get\u3001put\u3001post \u7b49\u65b9\u6cd5\uff0c\u6bd4\u5982\u8fd9\u91cc\u4f60\u53ef\u4ee5\u4f7f\u7528 put \u6765\u6dfb\u52a0 data \u6570\u636e\u5230\u5b57\u5178\u4e2d\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;padding: 0px 0.5em;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"box-shadow: rgb(210, 210, 210) 0em 0em 0.5em 0px;font-size: 17px;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python6-1595912612.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u5728\u8fd9\u91cc\u53ef\u4ee5\u628a\u8bf7\u6c42\u8def\u5f84\u7684 todo_id \u4f5c\u4e3a\u53d8\u91cf\uff0c\u8fd0\u884c\u8d77\u6765\u540e\u4f60\u5c31\u53ef\u4ee5\u5f80\u91cc\u76f8\u5e94\u7684 put \u6570\u636e\u4e86\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;padding: 0px 0.5em;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"box-shadow: rgb(210, 210, 210) 0em 0em 0.5em 0px;font-size: 17px;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python8-1595912612.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u4f7f\u7528 get \u65b9\u6cd5\u83b7\u53d6\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python0-1595912612.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u5728 add_resource \u4e2d\uff0c\u4f60\u53ef\u4ee5\u5b9a\u4e49\u591a\u4e2a\u8def\u7531\u6307\u5411\u540c\u4e00\u4e2a\u7c7b\u8d44\u6e90\u4e2d\u53bb\uff1a<br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;padding: 0px 0.5em;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"box-shadow: rgb(210, 210, 210) 0em 0em 0.5em 0px;font-size: 17px;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python9-1595912612.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u8bbf\u95ee\uff1a<br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python1-1595912612.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"width: 62%;height: auto !important;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python8-1595912612-1.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u9a8c\u8bc1\u8868\u5355\u6570\u636e\u7c7b\u578b\uff0c\u53ef\u4ee5\u4f7f\u7528 reqparse \u5b9a\u4e49 type\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python7-1595912612-1.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u8fd9\u6837\u5f53\u7528\u6237\u63d0\u4ea4\u7684\u4e0d\u662f int \u7c7b\u578b\u4f1a\u76f4\u63a5\u8fd4\u56de\u9519\u8bef\u4fe1\u606f\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python0-1595912613.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u5f53\u4f60\u7684 API \u60f3\u8981\u8fd4\u56de\u4e00\u4e2a\u5bf9\u8c61\u7684\u65f6\u5019\uff0c\u53ef\u80fd\u4f60\u9700\u8981\u5bf9\u5bf9\u8c61\u4e2d\u7684\u53c2\u6570\u5b9a\u4e49\u597d\u7c7b\u578b\uff0c\u53ef\u4ee5\u4f7f\u7528 fields \u548c marshal_with \u8fdb\u884c\u88c5\u9970\uff0c\u50cf\u8fd9\u6837\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;padding: 0px 0.5em;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg aligncenter\"      style=\"box-shadow: rgb(210, 210, 210) 0em 0em 0.5em 0px;font-size: 17px;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python2-1595912613.png\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">ok\uff0c\u4ee5\u4e0a\u5c31\u662f FlaskRESTful \u7684\u5e38\u7528\u64cd\u4f5c\uff0c\u66f4\u591a\u53c2\u6570\u4fe1\u606f\u53ef\u4ee5\u5230\u4ee5\u4e0b\u94fe\u63a5\u4e2d\u67e5\u770b\uff1a<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><span style=\"font-size: 14px;\">https:\/\/flask-restful.readthedocs.io\/en\/latest\/<\/span><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u4f60\u4e5f\u53ef\u4ee5\u8bd5\u7740\u5c31\u6211\u4eec\u4e0a\u6b21\u8bf4\u7684&nbsp;<a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247488125&amp;idx=1&amp;sn=95d904b173f604d205e1b8209c8fa5f4&amp;chksm=fc8baaeccbfc23fadc2df88158e1fb5c83500d37f9fb92acc1509db6760e20ccf04b039ba5a3&amp;scene=21#wechat_redirect\" tab=\"innerlink\" rel=\"noopener noreferrer\">\u7528 Python \u5f00\u53d1\u4e00\u4e2a \u3010\u4e2a\u4eba\u8ba1\u5212 todolist\u3011<\/a>&nbsp;\u7528&nbsp;<span style=\"letter-spacing: 3px;\">FlaskRESTful<\/span> \u6539\u5199\u4e00\u4e0b\uff0c\u4f53\u4f1a\u4e00\u4e0b\u533a\u522b\u3002<\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\">\u90a3\u4e48\u6211\u4eec\u4e0b\u56de\u89c1\u54af\uff0c<strong><span style=\"color: rgb(255, 169, 0);\">peace\uff01<\/span><\/strong><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;text-align: center;\"><img decoding=\"async\"     src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python2-1595912613.jpeg\" class=\" aligncenter\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;text-align: center;\"><br  \/><\/section>\n<p style=\"text-align: center;padding: 0px;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"width: 34%;border-radius: 6px;box-shadow: none;font-size: 17px;height: auto !important;\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/07\/python4-1595912613.jpeg\" alt=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\" title=\"\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684\"  \/><\/p>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<section style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;line-height: 2em;\"><br  \/><\/section>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<blockquote class=\"keep-source\">\n<p>\u539f\u6587\u59cb\u53d1\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7\uff08\u5b66\u4e60python\u7684\u6b63\u786e\u59ff\u52bf\uff09\uff1a<a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&#038;mid=2247488509&#038;idx=1&#038;sn=b36fcdff4a622695f2ac7711fd9fca41&#038;chksm=fc8bab6ccbfc227a491934c36661e97bab3e558049fc0657c55a5bd150c84b2d40b959562fa5&#038;token=1917764106&#038;lang=zh_CN#rd\" rel=\"noopener noreferrer\">\u4f7f\u7528 Python \u5199\u4e00\u4e2a\u53cb\u597d\u7684 API \u8fd8\u662f\u5f88\u91cd\u8981\u7684<\/a><\/p>\n<\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u5e05b\u4eca\u5929\u60f3\u8ddf\u4f60\u804a\u804a RESTful API \u8fd9\u73a9\u610f\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528 Python \u5feb\u901f\u521b\u5efa\u4f60\u7684 API \u7ed9\u522b\u4eba\u8c03\u7528\u3002 \u4f60\u5e94\u8be5\u7ecf\u5e38\u53bb\u8c03\u7528\u8fc7 API \uff0c\u901a\u8fc7\u4e00\u5b9a\u7684\u89c4\u5219\u5c31\u80fd\u5feb\u901f\u4f7f\u7528\u522b\u4eba\u63d0\u4f9b\u7684\u670d\u52a1\uff0c\u6bd4\u5982\u4f60\u60f3\u8981\u4f7f\u7528\u4eba\u8138\u8eab\u4efd\u8bc1\u6bd4\u5bf9\uff0c\u5c31\u6709\u76f8\u5e94\u7684 API \u4f9b\u4f60\u4f7f\u7528\uff1a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":5953,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[303],"tags":[490,19,489],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/5952"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5952"}],"version-history":[{"count":2,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/5952\/revisions"}],"predecessor-version":[{"id":5981,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/5952\/revisions\/5981"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/5953"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}