莫烦PYTHON——Python3基础教程 学习心得(2)
莫烦PYTHON——Python3基础教程 学习心得(2)5 定义功能5.1 def函数5.2 函数参数5.3 函数默认参数6 变量形式6.1 全局&局部变量7 模块安装7.1 模块安装8 文件读取8.1 读写文件18.2 读写文件28.3 读写文件3 5 定义功能 5.1 def函数 新建Python文件,输入 def function(): print('This is a function') a = 1 + 2 print(a) function() 得到 This is a function 3 5.2 函数参数 新建Python文件,输入 def fun
下载地址
用户评论