python 6-2
d = {
'Adam': 95,
'Lisa': 85,
'Bart': 59
}
print 'adma: ' + str(d.get('Adam'))
print 'lisa: ' + str(d.get('Lisa'))
print 'bart: ' + str(d.get("Bart"))
why it is wrong answer?
d = {
'Adam': 95,
'Lisa': 85,
'Bart': 59
}
print 'adma: ' + str(d.get('Adam'))
print 'lisa: ' + str(d.get('Lisa'))
print 'bart: ' + str(d.get("Bart"))
why it is wrong answer?
2017-10-19
举报