{"id":1725,"date":"2021-05-17T23:15:06","date_gmt":"2021-05-17T15:15:06","guid":{"rendered":"http:\/\/home.wangjianshuo.com\/cn\/?p=1725"},"modified":"2021-05-17T23:15:06","modified_gmt":"2021-05-17T15:15:06","slug":"%e4%b8%ba%e4%bb%80%e4%b9%88%e4%bb%a3%e7%a0%81%e6%80%bb%e6%9c%89%e5%8f%af%e8%83%bd%e5%8f%98%e5%be%97%e6%9b%b4%e7%9f%ad%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/home.wangjianshuo.com\/cn\/20210517_%e4%b8%ba%e4%bb%80%e4%b9%88%e4%bb%a3%e7%a0%81%e6%80%bb%e6%9c%89%e5%8f%af%e8%83%bd%e5%8f%98%e5%be%97%e6%9b%b4%e7%9f%ad%ef%bc%9f.htm","title":{"rendered":"\u4e3a\u4ec0\u4e48\u4ee3\u7801\u603b\u6709\u53ef\u80fd\u53d8\u5f97\u66f4\u77ed\uff1f"},"content":{"rendered":"<div id=\"wechat\">\n<p>\u6211\u66fe\u5192\u7740\u88ab\u7a0b\u5e8f\u5458\u4e16\u754c\u9a82\u5f97\u4f53\u65e0\u5b8c\u80a4\u7684\u98ce\u9669\uff0c\u575a\u5b9a\u7684\u8bba\u65ad\uff0c<a data-itemshowtype=\"0\" data-linktype=\"2\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MjM5NzI0Mjg0MA==&amp;mid=2652371662&amp;idx=1&amp;sn=88b1083dd05f1381eabb1beda7c47a54&amp;chksm=bd3fa8798a48216f764c86605f36accd9d6164d19992bb5671a25bfa9ffbfcd7ae3bbaeacbe3&amp;scene=21#wechat_redirect\" tab=\"innerlink\" target=\"_blank\" textvalue=\"\u8d8a\u77ed\u7684\u4ee3\u7801\u5c31\u662f\u8d8a\u597d\u7684\u4ee3\u7801\" rel=\"noopener noreferrer\">\u8d8a\u77ed\u7684\u4ee3\u7801\u5c31\u662f\u8d8a\u597d\u7684\u4ee3\u7801<\/a>\u3002<\/p>\n<p>\u4e0d\u63a5\u53d7\u62ac\u6760\uff0c\u4e0d\u63a5\u53d7\u53cd\u9a73\u3002&#x1f604;\u00a0<\/p>\n<p>\u6211\u7ecf\u5e38\u95ee\u81ea\u5df1\uff0c<span style=\"color: rgb(255, 76, 0);\">\u4e3a\u4ec0\u4e48\u4ee3\u7801\u603b\u80fd\u53d8\u5f97\u66f4\u77ed<\/span>\uff1f<\/p>\n<p>\u540c\u65f6\uff0c\u4e3a\u4ec0\u4e48\u628a\u4e00\u4e2a5\u884c\u7684\u4ee3\u7801\u7f16\u7a0b4\u884c\u57fa\u672c\u4e0d\u53ef\u80fd\uff0c\u4f46\u662f\u628a\u51e0\u4e07\u884c\u7684\u4ee3\u7801\u7f16\u7a0b\u51e0\u5343\u751a\u81f3\u51e0\u767e\u884c\u7ecf\u5e38\u53ef\u4ee5\u505a\u5230\uff1f<\/p>\n<p>\u8fd9\u4e2d\u95f4\u7684\u6700\u672c\u8d28\u7684\u6570\u5b66\u539f\u7406\u662f\u4ec0\u4e48\uff1f<\/p>\n<p>\u56e0\u4e3a\u4ee3\u7801\u7684\u7ec4\u5408\u662f<span style=\"color: rgb(255, 76, 0);\">\u6307\u6570\u7ea7<\/span>\u7684\u53d8\u5316\u7684\uff0c\u800c\u4e0d\u662f<span style=\"color: rgb(255, 76, 0);\">\u7ebf\u6027<\/span>\u7684\u3002\u8fd9\u5c31\u662f\u6211\u5bf9\u8fd9\u4e2a\u95ee\u9898\u7684\u601d\u7d22\u3002<\/p>\n<p style=\"white-space: normal;\">\u672c\u6587\u5199\u7ed9\u50cf\u7f8a\u9a7c\uff0c\u80d6\u5b50\u4e00\u6837\u7684\u65b0\u7a0b\u5e8f\u5458\u3002<\/p>\n<p><strong>\u7b2c\u4e00\u4e2a\u7ef4\u5ea6\uff1a\u591a\u7ef4\u5ea6\u4e0a\u7684\u6982\u5ff5\u62bd\u8c61<\/strong><\/p>\n<p>\u8fd9\u4e2a\u601d\u8003\uff0c\u53d7\u5230<span style=\"color: rgb(255, 76, 0);\">\u6587\u5b57\u53d1\u5c55\u5386\u53f2<\/span>\u7684\u542f\u53d1\u3002<\/p>\n<p>\u6700\u65e9\u7684\u6587\u5b57\u5176\u5b9e\u662f\u548c\u73b0\u5b9e\u4e16\u754c\u4e00\u4e00\u5bf9\u5e94\u7684\uff0c\u5e76\u6ca1\u6709\u8fdb\u884c\u62bd\u8c61\u3002\u4e5f\u5c31\u662f\u8868\u5f62\uff0c\u800c\u4e0d\u662f\u8868\u610f\u3002<\/p>\n<p>\u6bd4\u5982\u201c<span style=\"color: rgb(255, 76, 0);\">\u7f8a<\/span>\u201d\u5b57\uff0c\u6700\u521d\u6307\u7684\u4e0d\u662f\u201c&#x1f411;\u201d\u8fd9\u79cd\u52a8\u7269\uff0c\u800c\u662f\u6307\u81ea\u5df1\u5bb6\u91cc\u7684\u90a3\u4e00\u53ea\u6d3b\u8e66\u4e71\u8df3\u7684\u5bb6\u4f19\u3002\u5982\u679c\u8981\u8bb0\u5f55\u5bb6\u91cc\u7684\u4e09\u53ea\u7f8a\uff0c\u5c31\u201c\u7f8a \u7f8a \u7f8a\u201d\u3002\u4e00\u767e\u53ea\u5c31\u8981\u753b 100 \u4e2a \u7f8a\u3002<\/p>\n<p>\u76f4\u5230\u6709\u4e00\u5929\uff0c\u4eba\u4eec\u7684\u601d\u7ef4\u8fdb\u5316\u4e86\uff0c\u5f00\u59cb\u628a<span style=\"color: rgb(255, 76, 0);\">\u6570\u91cf<\/span>\u8fd9\u4ef6\u4e8b\u60c5\u548c<span style=\"color: rgb(255, 76, 0);\">\u79cd\u7c7b<\/span>\u8fd9\u4ef6\u4e8b\u60c5\u5206\u5728\u4e86\u4e24\u4e2a\u7ef4\u5ea6\u4e0a\uff0c\u5f00\u59cb\u6709\u4e86\u6570\u5b57\u6982\u5ff5\u3002<\/p>\n<p>\u8fd9\u4e2a\u5728\u8bed\u8a00\u548c\u4eba\u7c7b\u6587\u660e\u53f2\u4e0a\u662f\u975e\u5e38\u91cd\u8981\u7684\u7bc7\u7ae0\uff0c\u4ee5\u540e\u518d\u8bf4\u4e09\u53ea\u7f8a\uff0c\u5df2\u7ecf\u4e0d\u7528\u753b\u4e09\u4e2a\u201c\u7f8a\u201d\u4e86\uff0c\u800c\u53ea\u9700\u8981\u8bf4\u00a0\u201c\u4e09\u7f8a\u201d \u3002\u4e09\u662f<span style=\"color: rgb(255, 76, 0);\">\u6570\u5b57\u7ef4\u5ea6<\/span>\uff0c\u53ef\u4ee5\u6307\u4ee3\u4efb\u4f55\u7684\u4e09\uff08\u4e09\u4e2a\u82f9\u679c\uff0c\u4e09\u4e2a\u684c\u5b50\uff09\uff0c\u7f8a\u6307\u4ee3\u4efb\u4f55\u7684\u8fd9\u4e2a<span style=\"color: rgb(255, 76, 0);\">\u79cd\u7c7b<\/span>\uff08\u4e00\u53ea\u7f8a\uff0c10\u53ea\u7f8a\uff09\uff0c\u800c\u628a\u8fd9\u4e24\u4e2a\u7ef4\u5ea6\u4e00\u7ec4\u5408\uff0c\u4e00\u4e2a\u65b0\u7684\u6982\u5ff5\u5c31\u4ea7\u751f\u4e86\u3002<\/p>\n<p>\u53e4\u4ee3\u7684\u4e2d\u56fd\u4eba\u8fd8\u4e0d\u5584\u4e8e\u505a\u8fd9\u4ef6\u4e8b\u60c5\uff0c\u636e\u8003\u6709\u4e0a\u767e\u4e2a\u6c49\u5b57\u4e0e\u8f66\u7684\u90e8\u4ef6\u6709\u5173\uff0c\u6bd4\u5982 \u8ed2\u8f45\u8f2a\u8ef8\u8f44\u8f95\u8f6e\u8f74\u8861\u8f6d\u8ece\u8f96\u7b49\u7b49\u3002\u53ea\u4e0d\u8fc7\u540e\u6765\u5927\u5bb6\u4e0d\u7528\u4e3a\u6bcf\u4e2a\u4e0d\u540c\u7684\u7ec4\u4ef6\u90fd\u8d77\u4e2a\u4e0d\u540c\u7684\u6c49\u5b57\u6765\u63cf\u8ff0\uff0c\u76f4\u63a5\u7528\u7ec4\u5408\u8bcd\uff0c\u6bd4\u5982\u201c\u8f66\u8f6e\u201d\uff0c\u201c\u5de6\u524d\u8f6e\u201d \u7b49\u7b49\u6765\u5f62\u5bb9\u3002\u8fd9\u6837\u4ee3\u7801\u91cf\uff08\u5047\u8bbe\u6bcf\u4e00\u4e2a\u65b0\u6c49\u5b57\u7684\u5f15\u5165\u5c31\u662f\u4e00\u5927\u5768\u4ee3\u7801\uff09\u5c31\u5927\u5e45\u51cf\u5c11\u4e86\u3002<\/p>\n<p>\u901a\u8fc7\u5f15\u5165\u7ef4\u5ea6\uff0c\u7136\u540e\u5728<span style=\"color: rgb(255, 76, 0);\">\u7ef4\u5ea6\u4e0a\u6392\u5217\u7ec4\u5408<\/span>\uff0c\u6211\u4eec\u5f62\u6210\u4e86\u6781\u5927\u7684\u751f\u4ea7\u529b\u3002<\/p>\n<p>\u6bd4\u5982\u5bb6\u91cc\u6709\u4e09\u53ea\u201c\u597d\u770b\u7684\u7f8a\u201d\u3002\u5982\u679c\u7528\u9020\u5b57\u7684\u601d\u8def\uff0c\u53ef\u80fd\u5728\u7f8a\u4e0a\u9762\u52a0\u4e00\u4e2a\u5706\u5708\u6216\u8005\u522b\u7684\u4ec0\u4e48\u8868\u793a\uff0c\u7136\u540e\u91cd\u590d\u4e09\u904d\u3002\u4f46\u662f\u73b0\u5728\u53ea\u9700\u8981\u518d\u501f\u7528\u4e00\u4e2a\u901a\u7528\u7684\u7ef4\u5ea6\uff0c\u6bd4\u5982\u201c\u7f8e &#8211; \u4e11\u201d\u8fd9\u4e2a\u7ef4\u5ea6\uff0c\u5c31\u7ec4\u6210\u4e86 \u201c\u4e09\u7f8e\u7f8a\u201d\u3002<\/p>\n<p>\u5982\u6b64\u5f80\u590d\uff0c\u518d\u590d\u6742\u7684\u6982\u5ff5\uff0c\u4e5f\u53ef\u4ee5\u8f7b\u677e\u7684\u4e0d\u589e\u52a0\u4ee3\u7801\u7684\u65b9\u5f0f\u8868\u8fbe\uff0c\u6bd4\u5982\u6211\u5bb6\u91cc\u9762\u6709\u201c\u4e09\u767d\u7f8e\u80d6\u7f8a\u201d\u3002\u3002\u3002\u3002<\/p>\n<p>\u901a\u8fc7\u5207\u5206\u7ef4\u5ea6\uff0c\u7136\u540e\u7ec4\u5408\u7ef4\u5ea6\uff0c\u53ef\u4ee5\u4ee4\u4eba\u60ca\u8bb6\u7684\u51cf\u5c11\u4ee3\u7801\u590d\u6742\u5ea6\u3002<\/p>\n<p>\u6bd4\u5982<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">map(function, iterable)<\/span><\/code><\/pre>\n<\/section>\n<p>\u5c31\u8868\u8fbe\u4e86\u5faa\u73af\u7684\u7ef4\u5ea6\uff0c\u800c\u4e0d\u7ba1\u5faa\u73af\u4ec0\u4e48\u5bf9\u8c61\uff0c\u4e0d\u7ba1\u5bf9\u8fd9\u4e2a\u5bf9\u8c61\u5e72\u4ec0\u4e48\uff0c\u5c31\u662f\u4ee3\u66ff\u4e86 for()\u00a0\u5faa\u73af\u7684\u4e00\u4e2a\u6a21\u5f0f\u3002<\/p>\n<p>\u518d\u6bd4\u5982\u5f88\u591a\u8bbe\u8ba1\u6a21\u5f0f\u91cc\u9762\u7684\uff0c\u6bd4\u5982chain of responsibility \u6a21\u5f0f\uff0c\u5c31\u8868\u8fbe\u4e86if &#8211; elif else \u7684\u6982\u5ff5\u3002<\/p>\n<p>\u8fd9\u4e9b\u90fd\u662f\u5728\u4e00\u4e2a\u7ef4\u5ea6\u4e0a\u7684\u9ad8\u5ea6\u62bd\u8c61\u3002\u6240\u4ee5<span style=\"color: rgb(255, 76, 0);\">\u597d\u7684\u4ee3\u7801\u662f\u7ef4\u5ea6\u7684\u7ec4\u5408<\/span>\uff0c\u800c\u4e0d\u662f\u4e3a\u4e00\u4e2a\u5177\u4f53\u7684\u529f\u80fd\u4ece\u5934\u8bbe\u8ba1\u4e00\u4e2a\u6c49\u5b57\uff0c\u5e76\u4e14\u53ea\u7528\u4e00\u6b21\u5c31\u518d\u4e5f\u4e0d\u590d\u7528\u4e86\u3002\u53ea\u7528\u4e00\u6b21\u7684\u4ee3\u7801\u4e00\u5b9a\u6ca1\u6709\u8868\u8fbe\u4e00\u4e2a\u91cd\u8981\u7684\u7ef4\u5ea6\u3002<\/p>\n<p>\u8fd9\u4e5f\u5c31\u662f\u5927\u718a\u6240\u63d0\u51fa\u7684\u4e00\u4e2a\u6982\u5ff5\uff0c\u5c31\u662f\u4e00\u4e2a\u597d\u7684\u7a0b\u5e8f\u5458\u4e3a\u4ec0\u4e48\u6bd4\u4e0d\u597d\u7684\u7a0b\u5e8f\u5458\u4f1a\u670910\u500d\u7684\u5dee\u5f02\uff0c\u5c31\u662f\u4e00\u822c\u7684\u7a0b\u5e8f\u5458\u53ef\u80fd\u77e5\u9053100\u4e2a\u7ef4\u5ea6\uff08\u6216\u8bb8\u4f1a\u4e2d\u6587\u63a5\u53d7\u8fc7\u5927\u5b66\u6559\u80b2\u90fd\u6709\u8fd9\u4e48\u591a\u7ef4\u5ea6\uff09\uff0c\u800c\u597d\u7684\u7a0b\u5e8f\u5458\u77e5\u9053103\u4e2a\u7ef4\u5ea6\uff0c\u8fd9\u4e2a\u597d\u7684\u7a0b\u5e8f\u5458\u4e0d\u662f\u591a\u4e863%\u7684\u80fd\u529b\uff0c\u800c\u662f\u591a\u4e862\u76843\u6b21\u65b9 8 \u500d\u7684\u80fd\u529b\u3002\u751a\u81f3\u5982\u679c\u4e00\u4e2a\u7ef4\u5ea6\u8d85\u8fc72\u4e2a\u9009\u9879\u7684\u8bdd\uff0c\u53ef\u80fd\u4f1a\u662f\u51e0\u5341\u500d\u7684\u5dee\u5f02\u3002<\/p>\n<p style=\"white-space: normal;\"><strong>\u7b2c\u4e8c\u4e2a\u7ef4\u5ea6\uff1a\u4e8c\u5206\u6cd5<\/strong><\/p>\n<p style=\"white-space: normal;\">\u60f3\u8c61\u4e00\u4e0b\u6709\u5982\u4e0b\u4ee3\u7801\uff0c\u6211\u4eec\u5148\u8003\u8651\u7b80\u5355\u7684\u5e73\u94fa\u76f4\u53d9\uff0c\u6ca1\u6709if\uff0cfor\u8fd9\u6837\u7684\u63a7\u5236\u7ed3\u6784\u7684\u60c5\u5f62\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"python\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">def<\/span> <span class=\"code-snippet__title\">something<\/span><span class=\"code-snippet__params\">()<\/span>:<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">  statement0( )<\/span><\/code><code><span class=\"code-snippet_outer\">  statement1( )<\/span><\/code><code><span class=\"code-snippet_outer\">  statement2( )<\/span><\/code><code><span class=\"code-snippet_outer\">  .......<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0statement63(\u00a0)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"white-space: normal;\">\u8fd9\u79cd\u521d\u7ea7\u7a0b\u5e8f\u5458\u5e38\u5199\u7684\u957f\u957f\u7684\u51fd\u6570\u5982\u4f55\u53d8\u77ed\uff1f\u5982\u679c\u4ec5\u4ec5\u7528\u8bed\u6cd5\u7cd6\uff0c\u6216\u8005\u4f5c\u5f0a\u7684\u65b9\u5f0f\u53ef\u80fd\u4ece65\u884c\u964d\u523060\u884c\u3002\u4f46\u57fa\u672c\u4e0a\u5230\u5934\u4e86\u3002\u6709\u6ca1\u6709\u53ef\u80fd\u66f4\u77ed\uff1f<\/p>\n<p style=\"white-space: normal;\">\u4ece\u7eaf\u6982\u5ff5\u7684\u89d2\u5ea6\u53bb\u601d\u8003\uff0c\u53ef\u4ee5\u7528\u4e8c\u5206\u6cd5\uff0c\u6539\u5199\u6210\u5982\u4e0b\u51fd\u6570\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"python\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">def<\/span>\u00a0<span class=\"code-snippet__title\">something<\/span><span class=\"code-snippet__params\">()<\/span>:<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0part_0()<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0part_1()<\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">def<\/span> <span class=\"code-snippet__title\">part_0<\/span><span class=\"code-snippet__params\">()<\/span>:<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0statement0()<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0......<\/span><\/code><code><span class=\"code-snippet_outer\">    statement31()<\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">def<\/span> <span class=\"code-snippet__title\">part_1<\/span><span class=\"code-snippet__params\">()<\/span>:<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0statement32()<\/span><\/code><code><span class=\"code-snippet_outer\">    .......<\/span><\/code><code><span class=\"code-snippet_outer\">    statement63()<\/span><\/code><\/pre>\n<\/section>\n<p style=\"white-space: normal;\">\u7ecf\u8fc7\u7b2c\u4e00\u6b65\u91cd\u6784\uff0c\u540c\u6837\u7684\u529f\u80fd\uff0c\u4ece65\u884c\uff0c\u6682\u65f6\u7684\u589e\u52a0\u523069\u884c\u3002\u4f46\u662f\u4e0d\u7740\u6025\uff0c\u7ee7\u7eed\u7ecf\u8fc74\u6b21\u62c6\u5206\uff0c\u76f4\u5230\u6bcf\u4e2a\u51fd\u6570\u91cc\u9762\u53ea\u5305\u542b\u4e24\u884c\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"python\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">def<\/span>\u00a0<span class=\"code-snippet__title\">something<\/span><span class=\"code-snippet__params\">()<\/span>:<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0part_0()<\/span><\/code><code><span class=\"code-snippet_outer\">    part_1()<\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">def<\/span>\u00a0<span class=\"code-snippet__title\">part_0<\/span><span class=\"code-snippet__params\">()<\/span>:<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0part_0_0()<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0part_0_1()<\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\">........<\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">def<\/span>\u00a0<span class=\"code-snippet__title\">part_0_0_0_0_0<\/span><span class=\"code-snippet__params\">()<\/span>:<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0statement0()<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0statement1()<\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\">........<\/span><\/code><code><span class=\"code-snippet_outer\"><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">def<\/span> <span class=\"code-snippet__title\">part_1_1_1_1_1<\/span><span class=\"code-snippet__params\">()<\/span>:<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0statement62()<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0statement63()<\/span><\/code><\/pre>\n<\/section>\n<p style=\"white-space: normal;\">\u5230\u8fd9\u4e00\u6b65\uff0c\u6211\u4eec\u768465\u884c\u51fd\u6570\u5df2\u7ecf\u88ab\u6211\u4eec\u6269\u5c55\u6210\u4e86 189 \u884c\u3002<\/p>\n<p style=\"white-space: normal;\">\u8fd9\u5c31\u662f\u4ee3\u7801\u5728\u91cd\u6784\u7684\u65f6\u5019\u4f1a\u5148\u53d8\u957f\u7684\u539f\u56e0\u3002<\/p>\n<p style=\"white-space: normal;\">\u4f46\u4e4b\u540e\u4f1a\u53d1\u751f\u4ec0\u4e48\uff1f\u5982\u679c\u5728\u7b2c\u4e8c\u5c42\u4e00\u4e2a\u51fd\u6570\u7684 32 \u4e2a\u8bed\u53e5\u548c\u53e6\u5916\u51fd\u6570\u7684 32 \u4e2a\u8bed\u53e5\u8fd8\u627e\u4e0d\u5230\u4ec0\u4e48\u5171\u540c\u70b9\u7684\u8bdd\uff0c\u5728\u7b2c\u56db\u5c42\uff0c\u7b2c\u4e94\u5c42\uff0c\u7b2c\u516d\u5c42\uff0c\u4e00\u5b9a\u80fd\u591f\u627e\u5230\u76f8\u4f3c\u7684\u6a21\u5f0f\u3002\u56e0\u4e3a\u8ba1\u7b97\u673a\u9886\u57df\u7684\u65b0\u9c9c\u4e8b\u4e0d\u591a\uff0c\u80fd\u591f\u6709 32 \u4e2a\u5b8c\u5168\u6ca1\u6709\u76f8\u4f3c\u5ea6\u7684\u7ec4\u5408\u7684\u53ef\u80fd\u6027\u5df2\u7ecf\u4e0d\u5927\u3002\u4e00\u5b9a\u6709\u5927\u91cf\u7684\u4e24\u4e24\u76f8\u4f3c\u6027\u3002\u4f46\u4e00\u65e6\u53d1\u73b0\u6709\u4e24\u4e2a\u51fd\u6570\u505a\u4e00\u6837\u7684pattern\uff0c\u4ed6\u4eec\u4e24\u4e2a\u5c31\u53ef\u4ee5\u5408\u5e76\uff0c\u6bd4\u5982 part_0_1_1_0_1()\u00a0 \u548c part_1_0_1_1_0() \u7b49\u591a\u4e2a\u51fd\u6570\u53ef\u80fd\u5c31\u53ef\u4ee5\u590d\u7528\u4e86\u3002\u8fd9\u79cd\u590d\u7528\uff0c\u6709\u7ecf\u9a8c\u7684\u7a0b\u5e8f\u5458\u53ef\u4ee5\u4e00\u773c\u5c31\u770b\u5f97\u51fa\u6765\u3002<\/p>\n<p style=\"white-space: normal;\">\u5982\u679c\u53d1\u751f\u8fd9\u6837\u7684\u4e8b\u60c5\uff0c\u5728\u6700\u4e0b\u9762\u4e24\u4e09\u5c42\u53ef\u80fd\u4f1a\u51fa\u73b0\u4ee3\u7801\u574d\u584c\u6027\u7684\u51cf\u5c11\u3002\u5982\u679c\u5728\u7b2c\u516d\u5c42\u53d1\u73b0\u6709\u4e09\u4e2a\u51fd\u6570\u53ef\u4ee5\u590d\u7528\uff0c\u5c31\u53ef\u4ee5\u51cf\u5c11\u4e24\u4e2a\u51fd\u6570\uff086\u884c\uff09\uff0c\u5982\u679c\u5728\u7b2c\u4e94\u5c42\u53d1\u73b0\u6709\u4e09\u4e2a\u51fd\u6570\u7684\u529f\u80fd\u7c7b\u4f3c\u53ef\u4ee5\u590d\u7528\uff0c\u5c31\u53ef\u4ee5\u51cf\u5c116\u4e2a\u51fd\u6570\uff0818\u884c\uff09\u3002\u5206\u652f\u4e2d\uff0c<span style=\"color: rgb(255, 76, 0);\">\u8d8a\u4e0a\u9762\u53d1\u73b0\u51fd\u6570\u7684\u91cd\u7528\u673a\u4f1a\uff0c\u51cf\u5c11\u7684\u4ee3\u7801\u8d8a\u591a<\/span>\u3002<\/p>\n<p style=\"white-space: normal;\">\u5982\u4e0a\u53ea\u662f\u4e00\u4e2a\u7eaf\u6570\u5b66\u6a21\u578b\u3002\u800c\u5b9e\u9645\u4e0a\uff0c\u4ee3\u7801\u5e94\u8be5\u4e0d\u662f\u4e00\u5206\u4e8c\uff0c\u66f4\u591a\u7684\u662f\u4e00\u5206\u4e09\u6216\u8005\u4e00\u5206\u4e94\uff0c\u7a0b\u5e8f\u5458\u4e5f\u4e0d\u4f1a\u5206\u89e3\u5230\u6700\u540e\u4e00\u6b65\u518d\u91cd\u65b0\u56de\u6765\u91cd\u6784\uff0c\u800c\u662f\u901a\u8fc7\u7ecf\u9a8c\u5728\u7b2c\u4e8c\u5c42\u6216\u8005\u7b2c\u4e09\u5c42\u5c31\u5df2\u7ecf\u4e0d\u81ea\u89c9\u7684\u91cd\u6784\u4e86\u3002<\/p>\n<p style=\"white-space: normal;\">\u8fd9\u4e5f\u5c31\u89e3\u91ca\u4e86\u4e3a\u4ec0\u4e48\u4e00\u4e24\u767e\u5f88\u96be\u4f18\u5316\uff0c\u800c\u51e0\u4e07\u884c\u4ee3\u7801\u7ecf\u5e38\u53ef\u4ee5\u5d29\u584c\u5f0f\u7684\u7684\u51cf\u5c11\u603b\u91cf\u3002\u5c31\u662f\u56e0\u4e3a\u5728\u521d\u671f\u7684\u51e0\u767e\u6216\u8005\u51e0\u5343\u884c\u4ee3\u7801\u57fa\u672c\u4e0a\u7a77\u4e3e\u4e86\u8fd9\u4e2a\u9879\u76ee\u7684\u5927\u591a\u6570\u53ef\u80fd\u770b\u5230\u7684\u6a21\u5f0f\uff0c\u867d\u7136\u589e\u52a0\u4e86\u4ee3\u7801\u91cf\uff0c\u4f46\u662f\u672a\u6765\u7684\u51e0\u4e07\u884c\u4ee3\u7801\u5df2\u7ecf\u5f88\u5c11\u770b\u5230\u65b0\u7684\u6a21\u5f0f\uff0c\u57fa\u672c\u4e0a\u90fd\u91cd\u7528\u4e86\u6700\u65e9\u7684\u90a3\u51e0\u767e\u884c\u4ee3\u7801\uff0c\u53ea\u662f\u4e0d\u540c\u7684\u5c42\u6b21\u800c\u5df2\u3002<\/p>\n<p>\u8fd9\u4e9b\u601d\u8003\u4e0d\u662f\u4eca\u5929\u7684\u601d\u8003\uff0c\u572840-70\u5e74\u4ee3\u7684\u7a0b\u5e8f\u5458\u5df2\u7ecf\u5f00\u59cb\u7528\u51fd\u6570\uff0c\u5c01\u88c5\uff0c\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\uff0c\u8bbe\u8ba1\u6a21\u5f0f\u7b49\u7b49\u5404\u79cd\u65b9\u5f0f\u6765\u5b9e\u8df5\u8fd9\u4e9b\u7406\u8bba\uff0c\u53ea\u662f\u4eca\u5929\uff0c\u6df1\u5165\u7684\u601d\u8003\u8fd9\u4e9b\u5de5\u5177\u548c\u601d\u60f3\u5bf9\u4e8e\u6211\u4eec\u624b\u5934\u7684\u5de5\u4f5c\u7684\u5f71\u54cd\u7684\u7a0b\u5e8f\u5458\u5e76\u4e0d\u662f\u4e3b\u6d41\u800c\u5df2\u3002<\/p>\n<section class=\"mp_profile_iframe_wrp\"><mpprofile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-alias=\"gardendewalle\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/ficMBQYNIo0f2UO69NyT1OEXnYtk3VI00ANzyZyKOVlwy06f4ecrVNoGQU79pKjLjawy23gwpe4LalhapNDA25A\/0?wx_fmt=png\" data-id=\"MjM5NzI0Mjg0MA==\" data-nickname=\"\u738b\u5efa\u7855\" data-pluginname=\"mpprofile\" data-signature=\"\u74e6\u529b\u7684\u82b1\u56ed\u3002\u81ea\u8a00\u81ea\u8bed\u7684\u5730\u65b9\u3002\"><\/mpprofile><\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u66fe\u5192\u7740\u88ab\u7a0b\u5e8f\u5458\u4e16\u754c\u9a82\u5f97\u4f53\u65e0\u5b8c\u80a4\u7684\u98ce\u9669\uff0c\u575a\u5b9a\u7684\u8bba\u65ad\uff0c\u8d8a\u77ed\u7684\u4ee3\u7801\u5c31\u662f\u8d8a\u597d\u7684\u4ee3\u7801\u3002 \u4e0d\u63a5\u53d7\u62ac\u6760\uff0c\u4e0d\u63a5\u53d7\u53cd\u9a73\u3002&#038;#x &hellip; <a href=\"https:\/\/home.wangjianshuo.com\/cn\/20210517_%e4%b8%ba%e4%bb%80%e4%b9%88%e4%bb%a3%e7%a0%81%e6%80%bb%e6%9c%89%e5%8f%af%e8%83%bd%e5%8f%98%e5%be%97%e6%9b%b4%e7%9f%ad%ef%bc%9f.htm\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u4e3a\u4ec0\u4e48\u4ee3\u7801\u603b\u6709\u53ef\u80fd\u53d8\u5f97\u66f4\u77ed\uff1f<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/posts\/1725"}],"collection":[{"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/comments?post=1725"}],"version-history":[{"count":1,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/posts\/1725\/revisions"}],"predecessor-version":[{"id":1726,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/posts\/1725\/revisions\/1726"}],"wp:attachment":[{"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/media?parent=1725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/categories?post=1725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/tags?post=1725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}