Romance 发表于 2018-03-29 | 阅读次数: 字数统计: 185 | 阅读时长 ≈ 1 Romance来自好朋友的灵感,专利先申了!123456try: love()except Exception: breakfinally: continue Another1234567while marry('xiaoke'): try: love() except Exception: breakUp() finally: goOn() A Demo for story12345678910111213141516171819202122232425262728293031class Animal(): def __init__(self, name,sex,age,shape,face): self.name = name self.sex = sex self.age = age self.shape = shape self.face = face def say(self,sentence): print(sentence) def kiss(self,mouth): pass def act(self,act): pass def pushAway(self,sentence): pass def pointToHeart(self): pass def sad(self): pass def pushOnWall(self): passif __name__ == '__main__': Bear = Animal('Bear','M','23','fat','handsome') Pig = Animal('Pig','F','23','thin','ugly') Bear.say('I love you !') Pig.pushAway('Go to hell') Bear.pointToHeart('I am serious !') Pig.sad('sorry,I already have...') Bear.pushOnWall('I Want to you') Bear.kiss(Pig) ...