标签:func bsp shiro color ash int 学习 数值 cond
def Firstfunction(): ‘Mashiro‘ print("I love Mashiro!")
print(Firstfunction.__doc__)#函数文档 Firstfunction()#函数调用
输出:
Mashiro
I love Mashiro!
def Secondfunction(name1, name2): print(name1 + " love " + name2 + "!")、 Secondfunction(name2=‘Mashiro‘, name1=‘I‘)
输出:
I love Mashiro!
def Thirdfunction(name1=‘I‘, name2=‘Mashiro‘): print(name1 + " love " + name2 + "!")
Thirdfunction()
Thirdfunction("Sakura")
输出:
I love Mashiro!
Sakura love Mashiro!
标签:func bsp shiro color ash int 学习 数值 cond
原文地址:https://www.cnblogs.com/wyb6231266/p/10332336.html