七 Python def函数

七 Python 函数 1. 介绍: 将一些已经实现功能的代码封装起来,方便其它程序能够调用的叫作函数;python 函数基本格式:web def test1(): # 定义函数 pass # 函数体 test1() # 调用函数 2. 函数基础 2-1. 经常使用用法参考: 9 9乘法表 def multi_table(): for i in range(1,10):
相关文章
相关标签/搜索