{"id":1127,"date":"2019-11-13T22:08:40","date_gmt":"2019-11-13T14:08:40","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=1127"},"modified":"2021-10-08T21:26:38","modified_gmt":"2021-10-08T13:26:38","slug":"python-%e7%88%ac%e9%98%b6%e6%a2%af-%e8%af%ad%e6%b3%95%e7%b3%96%e6%98%af%e4%bb%80%e4%b9%88%e7%8e%a9%e6%84%8f%ef%bc%9fpython%e4%b8%ad%e7%9a%84%e5%87%bd%e6%95%b0%e9%ab%98%e7%ba%a7%e7%94%a8%e6%b3%95","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=1127","title":{"rendered":"Python \u722c\u9636\u68af | \u8bed\u6cd5\u7cd6\u662f\u4ec0\u4e48\u73a9\u610f\uff1fPython\u4e2d\u7684\u51fd\u6570\u9ad8\u7ea7\u7528\u6cd5\u2014\u2014\u88c5\u9970\u5668"},"content":{"rendered":"\n<p>\u901a\u8fc7\u524d\u9762\u7684\u4e00\u4e9b\u8bb2\u89e3\uff0c\u76f8\u4fe1\u4f60\u5bf9<a href=\"https:\/\/www.google.com\/search?q=%E5%87%BD%E6%95%B0+site%3A%22vip.fxxkpython.com%22&amp;oq=%E5%87%BD%E6%95%B0+site%3A%22vip.fxxkpython.com%22&amp;aqs=chrome..69i57.10768j0j7&amp;sourceid=chrome&amp;ie=UTF-8\"> Python \u7684\u51fd\u6570\u7528\u6cd5<\/a>\u6709\u4e00\u4e2a\u5927\u81f4\u7684\u8ba4\u8bc6\u4e86\uff0c\u6211\u4eec\u77e5\u9053\uff0c Python \u4e2d\u7684\u51fd\u6570\u53ef\u4ee5\u88ab\u5f53\u505a\u53c2\u6570\u8fdb\u884c\u8c03\u7528\uff0c\u51fd\u6570\u4e2d\u7684\u53c2\u6570\u662f\u5982\u4f55\u4f20\u9012\u7684\uff0c\u4e5f\u77e5\u9053\u51fd\u6570\u7684\u95ed\u5305\u4e86\uff0c\u90a3\u4e48\u63a5\u4e0b\u6765\u6211\u5c31\u53ef\u4ee5\u8ddf\u4f60\u8bf4\u8bf4\u51fd\u6570\u7684\u6bd4\u8f83\u9ad8\u7ea7\u7684\u7528\u6cd5\uff0c\u4e5f\u5c31\u662f\u88c5\u9970\u5668\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u8fd8\u5bf9\u51fd\u6570\u7684\u6982\u5ff5\u6709\u4e9b\u6a21\u7cca\uff0c\u53ef\u4ee5\u770b\u4e0b\u54b1\u4eec\u5f80\u671f\u5173\u4e8e\u51fd\u6570\u76f8\u5173\u7684\u5185\u5bb9\u518d\u6765\u770b\u8fd9\u4e00\u7bc7\uff0c\u8fd9\u6837\u4f1a\u6bd4\u8f83\u597d\u6d88\u5316\u4e00\u4e9b\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"804\" height=\"1024\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/11\/Screenshot-from-2019-11-13-20-46-53-804x1024.png\" alt=\"\" class=\"wp-image-1129\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/11\/Screenshot-from-2019-11-13-20-46-53-804x1024.png 804w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/11\/Screenshot-from-2019-11-13-20-46-53-236x300.png 236w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/11\/Screenshot-from-2019-11-13-20-46-53-768x978.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/11\/Screenshot-from-2019-11-13-20-46-53-769x979.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/11\/Screenshot-from-2019-11-13-20-46-53.png 1014w\" sizes=\"(max-width: 804px) 100vw, 804px\" \/><figcaption>\u5176\u5b9e\u5c31\u662f\u60f3\u544a\u8bc9\u4f60\u4e00\u4e2a Google \u7684\u641c\u7d22\u6280\u5de7<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u597d\u4e86\u3002<\/p>\n\n\n\n<p>\u770b\u5230\u6709 b \u53cb\u5bf9\u4e00\u4e9b\u65b9\u6cd5\u7684\u5b9a\u4e49\u611f\u5230\u7591\u60d1\uff1a\u4e3a\u5565\u5728\u65b9\u6cd5\u4e0a\u9762\u8981\u5404\u79cd @ \uff1f<\/p>\n\n\n\n<p>\u7c7b\u4f3c\u8fd9\u6837\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"609\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-1024x609.png\" alt=\"\" class=\"wp-image-6709\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-1024x609.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-300x178.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-768x457.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-1536x913.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-769x457.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27.png 1544w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u662f\u4f60\u6700\u5e38\u89c1\u7684\u4e00\u4e9b\u73a9\u610f\u4e86\u5427\uff0c\u5b83\u4eec\u90fd\u662f\u5565\u610f\u601d\uff0c\u4ee5\u53ca\u600e\u4e48\u53bb\u5b9a\u4e49\u4f7f\u7528\u5462\uff1f<\/p>\n\n\n\n<p>\u90a3\u4e48\uff0c\u63a5\u4e0b\u6765\u6211\u5c31\u5c3d\u91cf\u901a\u719f\u6613\u61c2\u7684\u8ddf\u4f60\u804a\u804a\u8fd9\u4e9b\u73a9\u610f\u3002<\/p>\n\n\n\n<p>\u5728\u6b64\u4e4b\u524d\uff0c\u6211\u4eec\u5148\u770b\u4e0b Python \u4e2d\u7684\u51fd\u6570\uff0c\u5b83\u7684\u5b9a\u4e49\u548c\u8c03\u7528\u53ef\u4ee5\u5982\u6b64\u7b80\u5355\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"810\" height=\"320\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.20.57.png\" alt=\"\" class=\"wp-image-6710\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.20.57.png 810w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.20.57-300x119.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.20.57-768x303.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.20.57-769x304.png 769w\" sizes=\"(max-width: 810px) 100vw, 810px\" \/><\/figure>\n\n\n\n<p>\u5176\u5b9e\uff0c\u5728 Python \u91cc\uff0c\u4e00\u4e2a\u51fd\u6570\u53ef\u4ee5\u662f\u4e00\u4e2a\u5bf9\u8c61\uff0c\u4e00\u4e2a\u51fd\u6570\u4e5f\u53ef\u4ee5\u88ab\u4f5c\u4e3a\u4e00\u4e2a\u300c\u53c2\u6570\u300d\u8fdb\u884c\u4f20\u9012\uff0c\u50cf\u8fd9\u6837\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"694\" height=\"372\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.29.31.png\" alt=\"\" class=\"wp-image-6711\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.29.31.png 694w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.29.31-300x161.png 300w\" sizes=\"(max-width: 694px) 100vw, 694px\" \/><\/figure>\n\n\n\n<p>\u6211\u4eec\u8fd9\u91cc\u5b9a\u4e49\u7684\u51fd\u6570 \u300cfunc_1\u300d\uff0c\u76f4\u63a5\u8fd4\u56de\u7684\u662f\u300c\u4f20\u5165\u8fdb\u6765\u7684\u51fd\u6570\u6267\u884c\u4e86\u4e00\u6ce2\u300d\u3002<\/p>\n\n\n\n<p>\u8fd9\u6837\u663e\u7136\u6ca1\u6709\u4ec0\u4e48\u610f\u4e49\uff0c\u66f4\u591a\u65f6\u5019\uff0c\u6211\u4eec\u662f\u5e0c\u671b\u4f20\u5165\u7684\u51fd\u6570\u5728\u6267\u884c\u7684\u524d\u540e\u53ef\u4ee5\u505a\u4e00\u4e9b\u76f8\u5173\u7684\u989d\u5916\u7684\u64cd\u4f5c\uff0c\u50cf\u8fd9\u6837\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"522\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.49.41-1024x522.png\" alt=\"\" class=\"wp-image-6712\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.49.41-1024x522.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.49.41-300x153.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.49.41-768x391.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.49.41-769x392.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.49.41.png 1076w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4f46\u8fd9\u91cc\u7684 \u300cfunc_1\u300d\u5e76\u6ca1\u6709 return\uff0c\u8fd9\u5c31\u4f1a\u5bfc\u81f4\u4e00\u4e2a\u8fd9\u6837\u7684 Error\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"393\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.54.08-1024x393.png\" alt=\"\" class=\"wp-image-6713\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.54.08-1024x393.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.54.08-300x115.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.54.08-768x295.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.54.08-1536x589.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.54.08-769x295.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.54.08.png 1762w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u6211\u4eec\u672c\u60f3\u62ff\u5230\u51fd\u6570\u7684\u5f15\u7528\uff0c\u7136\u540e\u53bb\u6267\u884c\uff0c\u53ef\u662f func_1 \u5e76\u6ca1\u6709\u8fd4\u56de\u4efb\u4f55\u4e1c\u897f\uff0c\u6240\u4ee5\u6211\u4eec\u7b2c\u4e03\u884c\u5f97\u5230\u7684 my_func \u5b9e\u9645\u4e0a\u662f None\u3002<\/p>\n\n\n\n<p>\u60f3\u8981\u89e3\u51b3\u8fd9\u6837\u7684\u5c34\u5c2c\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u5185\u90e8\u65b9\u6cd5\uff0c\u7136\u540e\u8fd4\u56de\u8fd9\u4e2a\u5f15\u7528\uff0c\u50cf\u8fd9\u6837\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"610\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.59.04-1024x610.png\" alt=\"\" class=\"wp-image-6714\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.59.04-1024x610.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.59.04-300x179.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.59.04-768x457.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.59.04-769x458.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53484.59.04.png 1296w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u7b80\u5355\u8bf4\u4e00\u4e0b\u8fd9\u91cc\u7684\u6267\u884c\u6d41\u7a0b\uff0c\u5f53\u4f60\u6267\u884c\u7b2c\u5341\u884c \u300cmy_func = func_1(say)\u300d \u7684\u65f6\u5019\uff0c\u8fd9\u65f6\u5019 say \u65b9\u6cd5\u4f1a\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9 func_1 \u51fd\u6570\uff0c\u800c\u8fd9\u4e2a\u51fd\u6570\u76f4\u63a5\u8fd4\u56de\u4e86 \u300cinner_func\u300d\uff0c\u90a3\u4e48\u8fd9\u65f6\u5019 my_func \u6307\u5411\u7684\u5c31\u662f inner_func:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"133\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.03.41-1024x133.png\" alt=\"\" class=\"wp-image-6715\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.03.41-1024x133.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.03.41-300x39.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.03.41-768x100.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.03.41-769x100.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.03.41.png 1304w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u6240\u4ee5\u6211\u4eec\u8fd9\u65f6\u5019\u6267\u884c \u300cmy_func()\u300d\u7684\u5c31\u53ef\u4ee5\u6267\u884c\u5230\u5185\u90e8\u65b9\u6cd5\u5b9a\u4e49\u7684\u4e1c\u897f\u3002<\/p>\n\n\n\n<p>\u770b\u5230\u8fd9\u91cc\uff0c\u4f60\u4f1a\u53d1\u73b0\uff0c\u6211\u4eec\u6240\u5b9a\u4e49\u7684 \u300cfunc_1\u300d\u5b9e\u9645\u4e0a\u5c31\u662f\u4e3a\u4e86<strong>\u6539\u53d8\uff08\u4f18\u5316\uff09\u4f20\u5165\u8fdb\u6765\u7684\u51fd\u6570\u7684\u6267\u884c\u7ed3\u679c<\/strong>\uff0c\u6bd4\u5982\u6211\u4eec\u521a\u5b9a\u4e49\u7684 say \u51fd\u6570\u3002<\/p>\n\n\n\n<p>\u8fd9\u6837\u7684\u51fd\u6570\u5b9a\u4e49\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u573a\u666f\u4e2d\u5e38\u5e38\u4f1a\u7528\u5230\uff0c\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u7528\u6237\u767b\u5f55\u6821\u9a8c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"482\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.27.16-1024x482.png\" alt=\"\" class=\"wp-image-6716\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.27.16-1024x482.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.27.16-300x141.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.27.16-768x362.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.27.16-1536x723.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.27.16-769x362.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.27.16.png 1572w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5f88\u663e\u7136\uff0c\u8fd9\u91cc\u6211\u4eec\u5e0c\u671b\u7528\u6237\u5728\u6267\u884c \u300clogin_user\u300d\u524d\u5148\u68c0\u67e5\u4e00\u4e0b\u7528\u6237\u540d\u5bc6\u7801\u5bf9\u4e0d\u5bf9\uff0c\u540c\u6837\u7684\uff0c\u6211\u4eec\u53ef\u4ee5\u8fd9\u6837\u6765\u62ff\u5230\u5185\u90e8\u65b9\u6cd5\u7684\u5f15\u7528\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"104\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.29.44-1024x104.png\" alt=\"\" class=\"wp-image-6717\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.29.44-1024x104.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.29.44-300x30.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.29.44-768x78.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.29.44-769x78.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.29.44.png 1084w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u90a3\u4e48\u901a\u8fc7\u8fd9\u4e2a login \uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5f97\u5230\u7528\u6237\u7684\u6821\u9a8c\u4e86\uff0c\u5f53\u5bc6\u7801\u9519\u8bef\u65f6\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"426\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.29-1024x426.png\" alt=\"\" class=\"wp-image-6718\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.29-1024x426.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.29-300x125.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.29-768x320.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.29-1536x639.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.29-769x320.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.29.png 1764w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5f53\u6743\u9650\u4e0d\u8db3\u65f6\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"434\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.39-1024x434.png\" alt=\"\" class=\"wp-image-6719\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.39-1024x434.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.39-300x127.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.39-768x326.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.39-1536x652.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.39-769x326.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.39.png 1810w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u53ea\u6709\u7528\u6237\u540d\u5bc6\u7801\u6b63\u786e\uff0c\u624d\u4f1a\u6267\u884c login_user \u65b9\u6cd5\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"138\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.47-1024x138.png\" alt=\"\" class=\"wp-image-6720\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.47-1024x138.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.47-300x41.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.47-768x104.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.47-769x104.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.31.47.png 1362w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4e5f\u8bb8\u8fd9\u65f6\u5019\u4f60\u4f1a\u53d1\u73b0\uff0c\u8fd9\u79cd\u65b9\u5f0f\u7684\u4f7f\u7528\uff0c\u6bcf\u6b21\u90fd\u9700\u8981\u50cf\u8fd9\u6837\u624d\u80fd\u62ff\u5230\u5f15\u7528\u53bb\u6267\u884c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"104\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.29.44-1-1024x104.png\" alt=\"\" class=\"wp-image-6721\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.29.44-1-1024x104.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.29.44-1-300x30.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.29.44-1-768x78.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.29.44-1-769x78.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.29.44-1.png 1084w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4e00\u70b9\u90fd\u4e0d Pythonic \u5440\uff0c\u90a3\u4e48\uff0c@ \u5c31\u6d3e\u4e0a\u7528\u573a\u4e86\uff01\uff01<\/p>\n\n\n\n<p>\u53ef\u4ee5\u76f4\u63a5\u8fd9\u6837\u4f7f\u7528\uff0c\u5728 @ \u540e\u9762\u6dfb\u52a0\u4e00\u4e2a\u4f60\u8981\u8fdb\u884c\u989d\u5916\u64cd\u4f5c\u7684\u65b9\u6cd5\u540d\u79f0\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"183\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.39.27-1024x183.png\" alt=\"\" class=\"wp-image-6722\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.39.27-1024x183.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.39.27-300x54.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.39.27-768x137.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.39.27-769x137.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.39.27.png 1412w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u901a\u8fc7\u8fd9\u6837\u7684\u5b9a\u4e49\uff0c\u5c31\u7b49\u4e8e \u300clogin_new_user\u300d\u62ff\u5230\u4e86 \u300cuser_check\u300d\u7684\u5185\u90e8\u5f15\u7528\uff0c\u53ef\u4ee5\u76f4\u63a5\u6267\u884c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"608\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.40.56-1024x608.png\" alt=\"\" class=\"wp-image-6723\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.40.56-1024x608.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.40.56-300x178.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.40.56-768x456.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.40.56-1536x913.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.40.56-769x457.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.40.56.png 1942w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u770b\u5230\u5b83\u4eec\u4e24\u7684\u533a\u522b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"174\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.43.17-1024x174.png\" alt=\"\" class=\"wp-image-6724\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.43.17-1024x174.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.43.17-300x51.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.43.17-768x131.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.43.17-1536x261.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.43.17-769x131.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53485.43.17.png 1810w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684 @ \uff0c\u5c31\u53ef\u4ee5\u8ba9\u8fd9\u4e2a\u51fd\u6570\u7684\u62e5\u6709\u989d\u5916\u7684\u529f\u80fd\uff0c\u6216\u8005\u6539\u53d8\u8fd9\u4e2a\u51fd\u6570\u7684\u6267\u884c\u7ed3\u679c\u3002\u6211\u4eec\u521a\u521a\u6240\u8bf4\u7684\u300c\u5728 @ \u540e\u9762\u6dfb\u52a0\u4e00\u4e2a\u4f60\u8981\u8fdb\u884c\u989d\u5916\u64cd\u4f5c\u7684\u65b9\u6cd5\u540d\u79f0\u300d\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u5728 Python \u4e2d\u5c31\u53eb decorator\u2014\u2014\u88c5\u9970\u5668\u3002<\/p>\n\n\n\n<p>\u800c\u8fd9\u79cd\u8bed\u6cd5\uff0c\u6211\u4eec\u53eb\u5b83\u300c\u8bed\u6cd5\u7cd6\u300d\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u8bed\u6cd5\u7cd6\uff08\u82f1\u8bed\uff1aSyntactic sugar\uff09\u662f\u7531\u82f1\u56fd\u8ba1\u7b97\u673a\u79d1\u5b66\u5bb6\u5f7c\u5f97\u00b7\u5170\u4e01\u53d1\u660e\u7684\u4e00\u4e2a\u672f\u8bed\uff0c\u6307\u8ba1\u7b97\u673a\u8bed\u8a00\u4e2d\u6dfb\u52a0\u7684\u67d0\u79cd\u8bed\u6cd5\uff0c\u8fd9\u79cd\u8bed\u6cd5\u5bf9\u8bed\u8a00\u7684\u529f\u80fd\u6ca1\u6709\u5f71\u54cd\uff0c\u4f46\u662f\u66f4\u65b9\u4fbf\u7a0b\u5e8f\u5458\u4f7f\u7528\u3002\u8bed\u6cd5\u7cd6\u8ba9\u7a0b\u5e8f\u66f4\u52a0\u7b80\u6d01\uff0c\u6709\u66f4\u9ad8\u7684\u53ef\u8bfb\u6027\u3002<\/p><p>\u2014\u2014\u6765\u81ea\u7ef4\u57fa\u767e\u79d1<\/p><\/blockquote>\n\n\n\n<p>\u5728\u88c5\u9970\u5668\u4e2d\u8fd8\u6709\u4e00\u79cd\u5e38\u7528\u7684\u65b9\u5f0f\uff0c\u5c31\u662f\u5b9a\u4e49\u88c5\u9970\u5668\u7684\u540c\u65f6\uff0c\u53ef\u4ee5\u7ed9\u5b83\u4f20\u9012\u53c2\u6570\uff0c\u62ff\u521a\u521a\u7684\u4f8b\u5b50\uff0c\u5047\u8bbe\u6211\u4eec\u9664\u4e86\u7528\u6237\u540d\u5bc6\u7801\uff0c\u8fd8\u60f3\u6821\u9a8c\u5bc6\u7801\u7684\u957f\u5ea6\uff0c\u4f46\u4e5f\u8bb8\u6bcf\u4e2a\u6ce8\u518c\u88c5\u9970\u5668\u7684\u65b9\u6cd5\uff0c\u60f3\u8981\u7684\u957f\u5ea6\u4e0d\u76f8\u540c\uff0c\u90a3\u4e48\u53ef\u4ee5\u8fd9\u6837\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"223\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.14.54-1024x223.png\" alt=\"\" class=\"wp-image-6725\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.14.54-1024x223.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.14.54-300x65.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.14.54-768x167.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.14.54-769x167.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.14.54.png 1094w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u6211\u4eec\u5e0c\u671b\u6700\u5c0f\u957f\u5ea6\u4e3a 6 \uff0c\u88c5\u9970\u5668\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"359\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.15.46-1024x359.png\" alt=\"\" class=\"wp-image-6726\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.15.46-1024x359.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.15.46-300x105.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.15.46-768x270.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.15.46-1536x539.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.15.46-2048x719.png 2048w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.15.46-769x270.png 769w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u548c\u6211\u4eec\u4e00\u5f00\u59cb\u5199\u7684\u88c5\u9970\u5668\u662f\u5dee\u4e0d\u591a\u7684\uff0c\u53ea\u4e0d\u8fc7\u4e3a\u4e86\u63a5\u6536\u53d8\u91cf\u53c2\u6570\uff0c\u6211\u4eec\u5728\u5b9a\u4e49\u4e86\u4e00\u4e2a\u5916\u5c42\u65b9\u6cd5\u3002\u53e6\u5916\uff0c\u8fd9\u91cc\u53ea\u662f\u4e3a\u4e86\u6f14\u793a\u5982\u4f55\u7ed9\u88c5\u9970\u5668\u4f20\u9012\u53c2\u6570\uff0c\u91cd\u70b9\u770b length \u5c31\u884c\u3002<\/p>\n\n\n\n<p>\u8fd9\u6837\u6267\u884c user_login \u5c31\u4f1a\u5f97\u5230\u8fd9\u6837\u7684\u7ed3\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"376\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.18.25-1024x376.png\" alt=\"\" class=\"wp-image-6727\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.18.25-1024x376.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.18.25-300x110.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.18.25-768x282.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.18.25-1536x565.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.18.25-2048x753.png 2048w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53486.18.25-769x283.png 769w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u597d\u4e86\uff0c\u73b0\u5728\u7684\u4f60\u5df2\u7ecf\u77e5\u9053\u4e86\u4ec0\u4e48\u662f\u88c5\u9970\u5668\uff0c\u73b0\u5728\uff0c\u56de\u5230\u4e00\u5f00\u59cb\u7684\u95ee\u9898\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"609\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-1-1024x609.png\" alt=\"\" class=\"wp-image-6728\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-1-1024x609.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-1-300x178.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-1-768x457.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-1-1536x913.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-1-769x457.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.07.27-1.png 1544w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u4e9b\u73a9\u610f\uff0c\u77e5\u9053\u662f\u4ec0\u4e48\u4e86\u5427\uff1f<\/p>\n\n\n\n<p>\u5b83\u4eec\u5c31\u662f Python \u5df2\u7ecf\u5199\u597d\u4e86\u7684\u88c5\u9970\u5668\uff0c\u4f60\u7684\u65b9\u6cd5\u5b9a\u4e49\u4e86\u4ec0\u4e48\u88c5\u9970\u5668\uff0c\u90a3\u5b83\u4eec\u5c31\u62e5\u6709\u989d\u5916\u7684\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u6765\u7ed9\u4f60\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e0b\u5b83\u4eec\u7684\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u901a\u5e38\uff0c@property \u548c @.setter \u4f1a\u642d\u914d\u4f7f\u7528\uff0c\u6bd4\u5982\u4e0a\u9762\u7684 name\uff0c\u901a\u8fc7 @name.setter \u88c5\u9970\uff0c\u90a3\u4e48\u8fd9\u4e2a\u5c5e\u6027 name \u7684\u503c\u5c31\u53ef\u4ee5\u88ab\u6539\u53d8\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u65b9\u6cd5\u4e2d\u505a\u4e00\u4e9b\u7b80\u5355\u7684\u6821\u9a8c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"718\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.26.22-1024x718.png\" alt=\"\" class=\"wp-image-6729\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.26.22-1024x718.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.26.22-300x210.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.26.22-768x538.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.26.22-1536x1076.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.26.22-769x539.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.26.22.png 1778w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u901a\u8fc7 @property \u88c5\u9970\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u884c\u4e3a\u53ef\u4ee5\u76f4\u63a5\u88ab\u5f53\u4f5c\u5c5e\u6027\u4f7f\u7528\u3002\u6240\u4ee5\u6709\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 @property \u6765\u5355\u7eaf\u8fd4\u56de\u4e00\u4e9b\u6570\u636e\uff0c\u6bd4\u5982\u83b7\u53d6\u6570\u636e\u5e93\u4e2d\u7528\u6237\u7684\u8bb0\u5f55\u6709\u591a\u5c11\uff0c\u5c31\u53ef\u4ee5\u8fd9\u6837\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"725\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.38.00-1024x725.png\" alt=\"\" class=\"wp-image-6730\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.38.00-1024x725.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.38.00-300x212.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.38.00-768x544.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.38.00-769x545.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.38.00.png 1446w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u65f6\u5019\u53ea\u9700\u8981\u901a\u8fc7\u5b9e\u4f8b user.user_count \u5c31\u53ef\u4ee5\u83b7\u53d6\u4e86\u3002<\/p>\n\n\n\n<p>\u800c\u901a\u8fc7 @classmethod \u88c5\u9970\uff0c\u4f60\u5c31\u53ef\u4ee5\u628a\u8fd9\u4e2a\u65b9\u6cd5\u5f53\u4f5c\u300c\u5de5\u5382\u65b9\u6cd5\u300d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u65b9\u6cd5\u6765\u521b\u5efa\u5b9e\u4f8b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"922\" height=\"392\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.40.42.png\" alt=\"\" class=\"wp-image-6731\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.40.42.png 922w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.40.42-300x128.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.40.42-768x327.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.40.42-769x327.png 769w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/figure>\n\n\n\n<p>\u901a\u8fc7 @staticmethod \u88c5\u9970\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u5c31\u6210\u4e3a\u4e86\u300c\u9759\u6001\u65b9\u6cd5\u300d\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u7c7b\u53bb\u8bbf\u95ee\u5b83\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5b9e\u4f8b\u53bb\u8bbf\u95ee\u5b83\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"906\" height=\"304\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.43.29.png\" alt=\"\" class=\"wp-image-6732\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.43.29.png 906w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.43.29-300x101.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.43.29-768x258.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/10\/\u622a\u5c4f2021-10-08-\u4e0b\u53487.43.29-769x258.png 769w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u51e0\u4e2a\u53ea\u662f\u5e38\u89c1\u7684\u88c5\u9970\u5668\uff0c\u5728\u4e00\u4e9b\u9879\u76ee\u4e2d\u6211\u4eec\u4e5f\u5e38\u5e38\u4f1a\u4f7f\u7528\u5230\u88c5\u9970\u5668\uff0c\u6bd4\u5982\u7528 Python \u5199 web \u9879\u76ee\uff0c\u5c31\u6709\u5f88\u591a\u63d2\u4ef6\u90fd\u662f\u53ef\u4ee5\u901a\u8fc7\u88c5\u9970\u5668\u6765\u7b80\u5316\u4ee3\u7801\uff0c\u64cd\u4f5c\u8d77\u6765\u65b9\u4fbf\u4e14\u53ef\u8bfb\u6027\u6760\u6760\u6ef4\u3002<\/p>\n\n\n\n<p>OK\uff0c\u8fd9\u5c31\u662f\u5c0f\u5e05b\u4eca\u5929\u7ed9\u4f60\u5e26\u6765\u7684\u5206\u4eab\u3002\u5982\u679c\u5bf9\u4f60\u6709\u5e2e\u52a9\u8fd8\u8bf7\u4f60\u5206\u4eab\uff0c\u70b9\u8d5e\u6216\u7528\u4f60\u559c\u6b22\u7684\u65b9\u5f0f\u652f\u6301\u6211\uff0c\u6211\u4f1a\u7ed9\u4f60\u5e26\u6765\u66f4\u591a\u5185\u5bb9\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7\u524d\u9762\u7684\u4e00\u4e9b\u8bb2\u89e3\uff0c\u76f8\u4fe1\u4f60\u5bf9 Python \u7684\u51fd\u6570\u7528\u6cd5\u6709\u4e00\u4e2a\u5927\u81f4\u7684\u8ba4\u8bc6\u4e86\uff0c\u6211\u4eec\u77e5\u9053\uff0c Python \u4e2d\u7684\u51fd\u6570\u53ef\u4ee5\u88ab\u5f53\u505a\u53c2\u6570\u8fdb\u884c\u8c03\u7528\uff0c\u51fd\u6570\u4e2d\u7684\u53c2\u6570\u662f\u5982\u4f55\u4f20\u9012\u7684\uff0c\u4e5f\u77e5\u9053\u51fd\u6570\u7684\u95ed\u5305\u4e86\uff0c\u90a3\u4e48\u63a5\u4e0b\u6765\u6211\u5c31\u53ef\u4ee5\u8ddf\u4f60\u8bf4\u8bf4\u51fd\u6570\u7684\u6bd4\u8f83\u9ad8\u7ea7\u7684\u7528\u6cd5\uff0c\u4e5f\u5c31\u662f\u88c5\u9970\u5668\u3002 \u5982\u679c\u4f60\u8fd8&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[140],"tags":[141,62,158,156,157],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1127"}],"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=1127"}],"version-history":[{"count":2,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1127\/revisions"}],"predecessor-version":[{"id":6734,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1127\/revisions\/6734"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}