d = {
'Alice': 45,
'Bob': 60,
'Candy': 75,
'David': 86,
'Ellena': 49
}
if 'Alice' in d:
d.pop('Alice')
print('Delete sucessfully')
else:
print('STUDENT IS NOT EXIST')
我这个应该是和答案一样的思路吧