主ã«ç§ãè¯ã使ãC++ã¨éãç¹ã«ã¤ãã¦ããã£ãç¹ã¨ããæ°ããå¦ãã äºãã¤ãã¤ãã¨ã¡ã¢ã£ã¦ç½®ãã çµå±ãããããã£ï¼propertyï¼ã¯ãã£ã¹ã¯ãªãã¿åã®ä¸é¨ã¤ã¼ãã¨ãããã __new__ã¯__init__ï¼ã³ã³ã¹ãã©ã¯ã¿ï¼ããå
ã«å¼ã°ãã 親ã¯ã©ã¹ã®ã³ã³ã¹ãã©ã¯ã¿ã¯æ示çã«å¼ã°ãªãã¨ã ã 親ã¯ã©ã¹ã®ã¡ã½ãããæ示çã«å¼ã¶ã«ã¯ãä¾ãã°ä¸ã®ä¾ã 㨠Parent.__init__(self) super(Child,self).__init__() ã®ã©ã¡ãã§ãåä½ããããæè¿ã®è¦æ ¼(new style classãobjectãç¶æ¿ãã¦æ¸ãã¯ã©ã¹)ã ã¨superé¢æ°ã使ç¨ãããã®ãæ¨å¥¨ããã¦ããã½ããéã«ä¸ã®ã¯old styleã£ã¦ãã¨ã pep8, Pylintã§ã³ã¼ãã®ç¶ºéºããã§ãã¯ã§ãã âé©å½ã«ç¶æ¿ï¼ããããã£ä½¿ã£ã¦ã¿ãã³ã¼ã # -*- coding: utf-8 -*- clas
{{#tags}}- {{label}}
{{/tags}}