成语大全网 - 经典成语 - 读取词典

读取词典

cloris?=?{'Owner':'jack','kind':'dog'}

brinkley?=?{'Owner':'tom','kind':'cat'}

pets?=?['cloris',?'brinkley']

for?i?in?pets:

print('%s:'%i)

print('Owner:%s,kind:%s'%(eval(i)['Owner'],eval(i)['kind']))

蓦然回首···还是这个好看