为什么这样会报错呢
d = {
'Alice': 45,
'Bob': 60,
'Candy': 75,
'David': 86,
'Ellena': 49
}
print(d.get('Alice')
print(d.get('Mimi'))
为什么这样会报错呢
File "index.py", line 10 print(d.get('Mimi')) ^ SyntaxError: invalid syntax
d = {
'Alice': 45,
'Bob': 60,
'Candy': 75,
'David': 86,
'Ellena': 49
}
print(d.get('Alice')
print(d.get('Mimi'))
为什么这样会报错呢
File "index.py", line 10 print(d.get('Mimi')) ^ SyntaxError: invalid syntax
2021-07-15
举报