>>> def in_fidge():
try:
count = fridge[wanted_food]
except KeyError:
count = 0
return count
...
>>> def in_fidge():
try:
count = fridge[wanted_food]
except KeyError:
count = 0
return count
...
def in_fidge():
try:
count = fridge['wanted_food']
except KeyError:
count = 0
return count
2 回答5.3k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
4 回答1.5k 阅读✓ 已解决
3 回答1.4k 阅读✓ 已解决
3 回答1.3k 阅读✓ 已解决
2 回答960 阅读✓ 已解决
1 回答1.8k 阅读✓ 已解决
缩进问题?