摘要: 函数基础 1.函数的语法: def 函数名(参数1,参数2,参数3,...) '''注释''' 函数体 return 返回的值 说明: return也可以返回多个值,以逗号分割,返回的值为元祖 例子: def test(x): x = x + 1 return x print(test(4)) de 阅读全文
posted @ 2019-08-24 22:41 五彩斑斓的黑~ 阅读(96) 评论(0) 推荐(0)