python定义函数和调用函数

python定义函数用def 关键字声明

# 定义函数 和  调用函数
def fun(n):
    return n
print(fun(2))
原文地址:https://www.cnblogs.com/luguankun/p/14363215.html