# This program stores people's favorite numbers, and displays them. favorite_numbers = {'eric': [3, 11, 19, 23, 42], 'ever': [2, 4, 5], 'willie': [5, 35, 120], } # Display each person's favorite numbers. print("Eric's favorite numbers are:") print(favorite_numbers['eric']) print("\nEver's favorite numbers are:") print(favorite_numbers['ever']) print("\nWillie's favorite numbers are:") print(favorite_numbers['willie'])
标签:ever,favorite,嵌套,numbers,print,willie,eric,字典 From: https://www.cnblogs.com/arwen-xu/p/17767158.html