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,函数参数,print,pythonProject,默认值 From: https://www.cnblogs.com/988MQ/p/16661349.html