Python函数无法运行源码有问题吗?,python源码,>>> def in_f


>>> def in_fidge():try:    count = fridge[wanted_food]except KeyError:    count = 0return 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...

编橙之家文章,

评论关闭