1.`"""" """`三引号+__doc__:
# 三引号的使用 + __doc__ def in_fridge(): """this is a function to see fridge has to be a doctionary fir is in the string wanted_food """ try: count = fridge[wanted_food] except KeyErrot: count = 0 return count print('{0}'.format(in_fridge.__doc__)) >>> this is a function to see fridge has to be a doctionary fir is in the string wanted_food