摘要:
'''概念:能处理比定义时更多的参数'''#加了星号(*)的变量存放所有未命名的变量参数,如果在函数调用时没有指定参数,它就是一个空元组def func(name, *args): print(name) print(type(args)) for x in args: print(x)func(" 阅读全文
摘要:
#定义了一个无参无返回值的函数def myPrint(): print("sunck is a very good man!") print("sunck is a nice man!") print("sunck is a handsome man!")myPrint()myPrint()myPr 阅读全文