注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
#! /usr/local/bin/python # -*- coding:utf-8 -*- class Parent(object): def show(self): self.stdout... #! /usr/local/bin/python # -*- coding:utf-8 -*- class Parent(object): def show(self): self.stdout() def stdout(self): print "poko" class Child(Parent): def stdout(self): """ オーバーライド """ print "child poko" if __name__ == "__main__": parent = Parent() parent.show() child = Child() child.show()
2016/01/06 リンク