seq = ('name', 'age', 'sex') dict_1 = dict.fromkeys(seq) print(dict_1) dict_2 = dict.fromkeys(seq, 10) print(dict_2) ## result ## {'age':None, 'name':None, 'sex':None} {'age':10, 'name':10, 'sex':10}