표준입력 (stdin)
실행옵션 (runtime option)
코드:
실행 »
표준입력/실행옵션
class Bird: def __init__(self): self.flying = True def birdsong(self): print("새소리") class Sparrow(Bird): def birdsong(self): print("짹짹") class Chicken(Bird): def __init__(self): self.flying = False my_sparrow = Sparrow() my_chicken = Chicken() my_sparrow.birdsong() my_chicken.birdsong()