a = {"name":'qiliyan','sex':'man'} print(tuple(a.keys())) #('name', 'sex') print(tuple(a.values())) #('qiliyan', 'man') for key in a.keys(): print(key) #name #sex for value in a.values(): print(value) # qiliyan # man
a = {"name":'qiliyan','sex':'man'} print(tuple(a.keys())) #('name', 'sex') print(tuple(a.values())) #('qiliyan', 'man') for key in a.keys(): print(key) #name #sex for value in a.values(): print(value) # qiliyan # man