摘要:
1 # create a mapping of state to abbreviation 2 states = { 3 'Oregon': 'OR', 4 'Florida': 'FL', 5 'California': 'CA', 6 'New York': 'NY', 7 'Michigan': 'MI' 8 } 9 10 #ct... 阅读全文
摘要:
1 class song(object): 2 3 def __init__(self, lytics): 4 self.lyrics = lytics 5 6 def sing_me_a_song(self): 7 for line in self.lyrics: 8 print (line) 9 ... 阅读全文