摘要: 1 # 函数的定义及调用 2 # 函数只有被调用时才执行 3 4 # Demo 1 5 # 定义一个名为print_messages的函数打印hello world 6 # 无参数的函数 7 8 def print_messages(): 9 print("hello world") 10 11 12 # 调用函数时输入函数名和括号即可 ... 阅读全文
posted @ 2019-05-17 09:36 Cloud.Li 阅读(319) 评论(0) 推荐(0)