#fromkes

python 快速创建字典 fromkes()

作用:快速创建字典特点:共用valueseq=['google','ie','firefox']#seq为可迭代对象(str,list,tuple,dict,set)dic=dict.fromkeys(seq)print(dic)#{'google':None,'ie':None,'firefox':None}dic2...