求解答加下划线的意思
d = {
'Adam': 95,
'Lisa': 85,
'Bart': 59
}
for k in ['Adam','Lisa','Bart']:
print "%s: %d"%(k,d.get(k))
d = {
'Adam': 95,
'Lisa': 85,
'Bart': 59
}
for k in ['Adam','Lisa','Bart']:
print "%s: %d"%(k,d.get(k))
2018-01-04
举报