摘要: 1.函数基本语法及特性 #语法定义 def sayhi(): # 函数名 print("Hello, I'm Python!") sayhi() # 调用函数 #可以带参数 def calc(x, y): res = x ** y return res # 返回函数执行结果 a,b = 2,3 c 阅读全文
posted @ 2019-04-27 22:33 星海航行 阅读(116) 评论(0) 推荐(0)