tups={'name':'小智','number':'1002'} for tup in tups: #for循环字典 print(f'{tup}:{tups[tup]}')