摘要: 函数外部的代码要想获取函数的执行结果,就可以在函数里用return语句把结果返回 1 def stu_register(name, age, course='PY' ,country='CN'): 2 print(" 注册学生信息 ") 3 print("姓名:", name) 4 print("a 阅读全文
posted @ 2019-11-19 00:01 进击的小吴 阅读(191) 评论(0) 推荐(0) 编辑