如果該參數沒有傳入值,就會使用預設值 def numSum(x,y=20):#設定參數y預設值為20 result=x+y return result print(numSum(x=5))#因為只傳入x ...
確定! 回上一頁