Python函数_鈥宒ef fun(a): return a+1 鈥宒ef f(b): print(b+1) 鈥宖(f-CSDN博客

网站介绍:文章浏览阅读457次。模块中函数调用方法①常规法import mathmath.sqrt(9)import cmathcmath.sqrt(-1)②负数通常不可此法调用函数from math import sqrtsqrt(9)③import mathfoo =math.sqrt foo(9)_鈥宒ef fun(a): return a+1 鈥宒ef f(b): print(b+1) 鈥宖(fun(3))