{"id":1497,"date":"2020-01-07T20:20:49","date_gmt":"2020-01-07T12:20:49","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=1497"},"modified":"2020-01-07T20:20:49","modified_gmt":"2020-01-07T12:20:49","slug":"python-%e7%88%ac%e9%98%b6%e6%a2%af-%e9%ad%94%e6%b3%95-__slots__-%e7%9a%84%e5%a6%99%e7%94%a8","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=1497","title":{"rendered":"Python \u722c\u9636\u68af | \u9b54\u6cd5 __slots__ \u7684\u5999\u7528"},"content":{"rendered":"\n<p>slost \u7684\u4e2d\u6587\u610f\u601d\u662f\u88ab\u63d2\u5165\uff0c\u88ab\u585e\u8fdb\u7684\u610f\u601d\uff0c\u548b\u4e00\u542c\uff0c\u8fd8\u6709\u70b9\u5c0f\u90aa\u6076\u5462\uff0c\u4f46\u662f\u5b83\u5728 Python \u4e2d\uff0c\u7b97\u5f97\u4e0a\u662f\u4e00\u4e2a\u633a\u725b\u903c\u7684\u9b54\u6cd5\u5173\u952e\u8bcd\u4e86\u3002<\/p>\n\n\n\n<p>\u4eca\u5929\u5c0f\u5e05b\u5c31\u6765\u5e26\u4f60\u8ba4\u8bc6\u5b83\uff0c\u8fd9\u4e48\u8bf4\u5427\uff0c\u5b83\u66f4\u591a\u7684\u662f\u7528\u5728\u9762\u5411\u5bf9\u8c61\u7684\u7c7b\u548c\u5b9e\u4f8b\u4e2d\uff0c __slots__ \u53ef\u4ee5\u505a\u5230\u4ee5\u4e0b\u51e0\u70b9\uff1a<div style=\"text-align:center;border:1px dashed #FF9A9A;padding:8px;margin:10px auto;color:#FF6666;\">\u672c\u6587\u9690\u85cf\u5185\u5bb9 <a href=\"https:\/\/vip.fxxkpython.com\/wp-login.php?redirect_to=https%3A%2F%2Fvip.fxxkpython.com%2F%3Fp%3D1497\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"715\" height=\"152\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-07-20-18-15.png\" alt=\"\" class=\"wp-image-1516\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-07-20-18-15.png 715w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/01\/Screenshot-from-2020-01-07-20-18-15-300x64.png 300w\" sizes=\"(max-width: 715px) 100vw, 715px\" \/><\/figure><\/div>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u5185\u5b58\u7684\u6d88\u8017\u660e\u663e\u51cf\u5c11\u4e86\uff0c\u8fd9\u5c31\u662f slots \u7684\u4f18\u5316\u5185\u5b58\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>slost \u7684\u4e2d\u6587\u610f\u601d\u662f\u88ab\u63d2\u5165\uff0c\u88ab\u585e\u8fdb\u7684\u610f\u601d\uff0c\u548b\u4e00\u542c\uff0c\u8fd8\u6709\u70b9\u5c0f\u90aa\u6076\u5462\uff0c\u4f46\u662f\u5b83\u5728 Python \u4e2d\uff0c\u7b97\u5f97\u4e0a\u662f\u4e00\u4e2a\u633a\u725b\u903c\u7684\u9b54\u6cd5\u5173\u952e\u8bcd\u4e86\u3002 \u4eca\u5929\u5c0f\u5e05b\u5c31\u6765\u5e26\u4f60\u8ba4\u8bc6\u5b83\uff0c\u8fd9\u4e48\u8bf4\u5427\uff0c\u5b83\u66f4\u591a\u7684\u662f\u7528\u5728\u9762\u5411\u5bf9\u8c61\u7684\u7c7b\u548c\u5b9e\u4f8b\u4e2d\uff0c __slots__ \u53ef\u4ee5\u505a\u5230\u4ee5\u4e0b\u51e0\u70b9\uff1a \u53ef&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":[263,19,141,266,264,265,83],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1497"}],"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=1497"}],"version-history":[{"count":1,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1497\/revisions"}],"predecessor-version":[{"id":1517,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1497\/revisions\/1517"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}