10.5 函数参数定义_默认值参数
作者:互联网
def fun(a,b=10): print(a,b) #函数的调用 fun(100) fun(20,30) print('hello',end='\t') #end实际默认值为\n print('world')
E:\PycharmProjects\pythonProject\venv\Scripts\python.exe E:/PycharmProjects/pythonProject/demon1/demo27.py 100 10 20 30 hello world 进程已结束,退出代码0
标签:fun,10.5,end,函数参数,PycharmProjects,print,pythonProject,默认值 来源: https://www.cnblogs.com/988MQ/p/16661349.html