3.函数
最后更新于
def test(str1,num1,str2):
num2 = num1 + 1
str3 = str1 + str2
print(num2,str3)
test("123",1,"1234")
# 仍是上面定义的test方法
test(str2 = "dadsa",str1 = "2131", num1 = 11)
def test(str1,num1 = 0,str2 = "123"):
num2 = num1 + 1
str3 = str1 + str2
print(num2,str3)
test("DASD")
def functionname([formal_args,] *var_args_tuple ):
def functionname([formal_args,] *var_args_dic ):