Programming/Python1 [문법정리] 3장 파이썬 051622 더보기 CONTENTS I. Python Concepts & Examples II. Practice III. Error Note IV. Application V. Wrap Up Python Concepts & Examples Class Objects & Instance Example: ''' m1 = Monster() m1.damage(90) m1.status_check() ''' class Monster(): hp = 100 alive = True def damage(self,attack): self.hp = self.hp - attack if self.hp bool: """ you need to declare types of variables, parameters, and return values o.. 2022. 5. 17. 이전 1 다음