python 定义函数
def sayHello(): print("hello world") sayHello() 结果 :hello world
函数传参
def max(a,b): if a>b: return a else: return b print(max(4,5)) 结果:5
def sayHello(): print("hello world") sayHello() 结果 :hello world
函数传参
def max(a,b): if a>b: return a else: return b print(max(4,5)) 结果:5
评论
评论列表
暂无评论,快来抢沙发吧~