format(name)在这里是什么意思
d = { 'Alice': 45, 'Bob': 60, 'Candy': 75, 'David': 86, 'Ellena': 49 } name = 'Alice' if name in d.keys(): d.pop(name) else: print('{} not in d'.format(name))
d = { 'Alice': 45, 'Bob': 60, 'Candy': 75, 'David': 86, 'Ellena': 49 } name = 'Alice' if name in d.keys(): d.pop(name) else: print('{} not in d'.format(name))
2020-09-28
举报