{"id":795,"date":"2019-10-01T01:43:01","date_gmt":"2019-09-30T17:43:01","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=795"},"modified":"2019-10-01T01:43:01","modified_gmt":"2019-09-30T17:43:01","slug":"python%e5%bf%ab%e9%80%9f%e5%85%a5%e9%97%a8-%e5%a5%bd%e5%a5%bd%e7%90%86%e8%a7%a3-python-%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%e4%b8%ad%e7%9a%84%e5%a4%9a%e7%bb%a7%e6%89%bf%e5%92%8csuper","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=795","title":{"rendered":"Python\u5feb\u901f\u5165\u95e8 | \u597d\u597d\u7406\u89e3 Python \u9762\u5411\u5bf9\u8c61\u4e2d\u7684\u591a\u7ee7\u627f\u548csuper"},"content":{"rendered":"\n<p>\u54b1\u4eec\u4e0a\u4e00\u7bc7\u8bb2\u5230\u4e86\u7ee7\u627f\uff0c\u8bf4\u5230\u4e86\u5b50\u7c7b\u548c\u7236\u7c7b\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u7236\u7c7b\u4e5f\u53eb\u4f5c\u57fa\u7c7b\u3001\u8d85\u7c7b\uff0c\u4e5f\u5c31\u662f super class \uff0c\u4e0a\u6b21\u6211\u4eec\u8bf4\u8981\u5728\u5b50\u7c7b\u4f7f\u7528\u7236\u7c7b\u5b9a\u4e49\u7684\u4e1c\u897f\uff0c\u5c31\u9700\u8981\u7528\u5230 super \u65b9\u6cd5\uff0c\u6709\u4e9b\u670b\u53cb\u4e0d\u592a\u7406\u89e3\uff1a\u4e0d\u662f\u8bf4\u5b50\u7c7b\u7ee7\u627f\u4e86\u7236\u7c7b\uff0c\u5c31\u76f4\u63a5\u90fd\u62e5\u6709\u4e86\u7236\u7c7b\u7684\u4e1c\u897f\u4e86\u4e48\uff1f\u4e3a\u5565\u8981\u4f7f\u7528 super \u5462\uff1f<\/p>\n\n\n\n<p>\u5176\u5b9e\uff0c\u5982\u679c\u4f60\u5bf9 <strong>\u7c7b<\/strong> \u548c <strong>\u5bf9\u8c61<\/strong> \uff08\u4e5f\u5c31\u662f\u6211\u4eec\u4e0a\u4e0a\u7bc7\u8bf4\u7684\u5185\u5bb9\uff09\u4e4b\u95f4\u7684\u533a\u522b\u6709\u4e00\u4e2a\u660e\u786e\u7684\u8ba4\u8bc6\uff0c\u7c7b\u53ea\u662f\u4e00\u4e2a\u7ed3\u6784\uff0c\u5bf9\u5417\uff1f\u6240\u4ee5\u4f60\u5728\u5b9a\u4e49\u7ed3\u6784\u7684\u65f6\u5019\uff0c\u5b83\u5e76\u4e0d\u662f\u5b9e\u4f8b\u5316\u51fa\u6765\u7684\u5bf9\u8c61\u4e86\uff0c\u4f60\u53ea\u662f\u5b9a\u4e49\uff0c\u90a3\u4e48\u4f60\u5728\u5b9a\u4e49\u65b9\u6cd5\u7684\u65f6\u5019\u60f3\u8981\u7528\u5230 super \u7c7b\u7684\u65b9\u6cd5\uff0c\u4f60\u5c31\u53ea\u80fd\u7528 super \u6765\u8c03\u7528\u5b83\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"746\" height=\"526\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-01-00-46-56.png\" alt=\"\" class=\"wp-image-796\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-01-00-46-56.png 746w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-01-00-46-56-300x212.png 300w\" sizes=\"(max-width: 746px) 100vw, 746px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"378\" height=\"29\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-01-00-48-31.png\" alt=\"\" class=\"wp-image-797\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-01-00-48-31.png 378w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-01-00-48-31-300x23.png 300w\" sizes=\"(max-width: 378px) 100vw, 378px\" \/><\/figure><\/div>\n\n\n\n<p>\u5f53\u7136\uff0c\u4f60\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 super \u7c7b\u7684<strong>\u540d\u79f0<\/strong>\u8fdb\u884c\u8c03\u7528\uff0c\u6bd4\u5982\u8fd9\u6837\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"671\" height=\"501\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-01-00-52-58.png\" alt=\"\" class=\"wp-image-798\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-01-00-52-58.png 671w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-01-00-52-58-300x224.png 300w\" sizes=\"(max-width: 671px) 100vw, 671px\" \/><\/figure><\/div>\n\n\n\n<p>\u867d\u7136\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7236\u7c7b\u7684\u540d\u79f0\u6765\u8c03\u7528\u7236\u7c7b\u7684\u65b9\u6cd5\uff0c\u4f46\u662f\u8fd9\u53ea\u662f\u9002\u7528\u4e8e\u5355\u7ee7\u627f\u7684\u60c5\u51b5\uff08\u5c0f\u5e05b\u4e4b\u524d\u7ed9\u4f60\u4e3e\u7684\u4f8b\u5b50\uff0c\u9ec4\u79cd\u4eba\u7ee7\u627f\u4e86\u4eba\u7c7b\uff0c\u5c31\u662f\u4e00\u4e2a\u5355\u7ee7\u627f\u3002\uff09<\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\u7ed9\u4f60\u8bb2\u7684\u591a\u7ee7\u627f\uff0c\u76f8\u4fe1\u4f60\u4f1a\u5bf9 super \u66f4\u8fd1\u4e00\u6b65\u7684\u8ba4\u8bc6\u3002<\/p>\n\n\n\n<p>\u6765\u4e3e\u4e00\u4e2a\u591a\u7ee7\u627f\u7684\u4f8b\u5b50\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"801\" height=\"401\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Untitled-Diagram9.png\" alt=\"\" class=\"wp-image-799\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Untitled-Diagram9.png 801w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Untitled-Diagram9-300x150.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Untitled-Diagram9-768x384.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Untitled-Diagram9-769x385.png 769w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/figure><\/div>\n\n\n\n<p>\u8fd9\u91cc\u7684 super \u7c7b<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%3D795\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u90a3\u4e48\u8981\u7528 Person \u7684\uff0c\u6211\u60f3\u4f60\u5e94\u8be5\u77e5\u9053\u4e86\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"500\" height=\"288\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-01-01-36-08.png\" alt=\"\" class=\"wp-image-810\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-01-01-36-08.png 500w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/10\/Screenshot-from-2019-10-01-01-36-08-300x173.png 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/figure><\/div>\n\n\n\n<p>\u4ee5\u4e0a\u5c31\u662f Python \u9762\u5411\u5bf9\u8c61\u4e2d\u7684\u591a\u7ee7\u627f\u548c super \u7684\u4f7f\u7528\uff0c\u8bf7\u4f60\u81ea\u5df1\u79c1\u5e95\u4e0b\u5b9e\u73b0\u4e00\u4e0b\uff0c\u4f53\u4f1a\u5176\u4e2d\u7684\u8fc7\u7a0b\uff0c\u505a\u597d\u7b14\u8bb0\u548c\u603b\u7ed3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u54b1\u4eec\u4e0a\u4e00\u7bc7\u8bb2\u5230\u4e86\u7ee7\u627f\uff0c\u8bf4\u5230\u4e86\u5b50\u7c7b\u548c\u7236\u7c7b\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u7236\u7c7b\u4e5f\u53eb\u4f5c\u57fa\u7c7b\u3001\u8d85\u7c7b\uff0c\u4e5f\u5c31\u662f super class \uff0c\u4e0a\u6b21\u6211\u4eec\u8bf4\u8981\u5728\u5b50\u7c7b\u4f7f\u7528\u7236\u7c7b\u5b9a\u4e49\u7684\u4e1c\u897f\uff0c\u5c31\u9700\u8981\u7528\u5230 super \u65b9\u6cd5\uff0c\u6709\u4e9b\u670b\u53cb\u4e0d\u592a\u7406\u89e3\uff1a\u4e0d\u662f\u8bf4\u5b50\u7c7b\u7ee7\u627f\u4e86\u7236\u7c7b\uff0c\u5c31\u76f4\u63a5\u90fd\u62e5\u6709\u4e86\u7236\u7c7b\u7684\u4e1c\u897f\u4e86\u4e48\uff1f\u4e3a\u5565\u8981&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[98,19,20,97,96,94,83],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/795"}],"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=795"}],"version-history":[{"count":1,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/795\/revisions"}],"predecessor-version":[{"id":811,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/795\/revisions\/811"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}