Python函数及练习题

函数定义与使用html  1. 无参数的函数; # # 定义函数, 并不会执行; # def hello(): #     # 函数体 #     print("hello") # # 调用函数 # hello() # print(len("hello")) # print() # 2. 带有参数的函数 def fun1(name):     # name = "fentiao"     # 定义
相关文章
相关标签/搜索