import random
mydict={}
c=0
while len(mydict.keys()) <100:
mydict["6102009%03d"%(random.randint(1,100))]="redhat"
print("account password")
for i,j in mydict.items():
print(i,j)
account={}.fromkeys(mydict,"redhat")
print(account)
print({i:j for i,j in mydict.items()}) 一行打印出来