函数里面有函数内函数一定用到了外函数的变量外函数的返回值是内涵数def price(unitPrice): def computer(weight): return (weight-0.1)*unitPrice return computerapple=price(3)print(apple(10.1))>>30