概念:调用函数时,如果没有传递参数,则使用默认参数 #以后要用默认参数,最好将默认参数放到最后 def myPrint(str, age = 18): print(str, age) myPrint("kaige" )