python error-object() takes no parameters
class Song(object):
def _init_(self, lyrics):
self.lyrics = lyrics
def sing_me_a_song(self):
for line in self.lyrics:
print line
happy_bday = Song(["Happy birthday to you",
"I don't want
原创
2017-03-31 20:29:08 ·
1104 阅读 ·
1 评论