首页 > IT职业 > IT职场 > python3集合操作
Beatles_Discography = {"Please Please Me": 1963, "With the Beatles": 1963,
"A Hard Day's Night": 1964, "Beatles for Sale": 1964, "Twist and Shout": 1964,
"Help": 1965, "Rubber Soul": 1965, "Revolver": 1966,
"Sgt. Pepper's Lonely Hearts Club Band": 1967,
"Magical Mystery Tour": 1967, "The Beatles": 1968,
"Yellow Submarine": 1969 ,'Abbey Road': 1969,
"Let It Be": 1970}
for album_title in Beatles_Discography:
print("title: {}, year: {}".format(album_title, Beatles_Discography[album_title]))
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2572/viewspace-2802635/ ,如需转载,请注明出处,否则将追究法律责任。