字典迭代names = {'Mary Wang': 'She is very cute', 'William Liu': 'He is very handsome', 'Tom Zhao': 'He is a little bit shy', 'Jary Qian': 'He is very rich'} for key, value in names.items(): print('Name:{} Saying:{}'.format(key, value))Name:Mary Wang Saying:She is very cute Name:William Liu Saying:He is very handsome Name:Tom Zhao Saying:He is a little bit shy Name
一只胖橘