摘要: (一)函数的作用 复用代码 隐藏实现细节 提高可维护性 提高可读性便于调试 (二)函数的创建 模板: def 函数名([输入参数]) 函数体 [return xxx] 示例: def cale(a,b): c=a+b return c result=cale(10,20) print(result) 阅读全文
posted @ 2022-08-18 10:43 訫語 阅读(58) 评论(0) 推荐(0)