def定义函数
def sayhello():
print(“hello world”)
sayhello()
如何做传入参数的做法
def max(a,b):
if a>b:
reture a
else:
reture b
print(max(2,3))
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号