python----字典的循环遍历

dict1={'name':tom,'age':18,'gender':'男'}  

for key in dict1.keys():

        print(key)

你可能感兴趣的:(python)