2020年8月10日

python编程从零基础到项目实践第六章学习---自定义函数第二步

摘要: 1、参数位置相关内容 def test(name,age): print("姓名:%s,年龄:%d"%(name,age))test("hah",11) 姓名:hah,年龄:11 test(name="cscs",age=50) 姓名:cscs,年龄:50 关键值传参def test1(name=" 阅读全文

posted @ 2020-08-10 22:08 刘阿童木 阅读(207) 评论(0) 推荐(0) 编辑

导航