前提准备 安装相关软件 python软件的安装入口 函数介绍及调用 1.格式 def 函数名(参数们): 函数体 2.函数分类 根据传参类型分为5类 1.无参函数 2.必传参数 3.默认传参 4.关键字传参 5.不定长传参 (1)无参函数 def helloworld(): print('hello world') helloworld() 结果: (2)必传参数 def compareAB(a,b): if a>