1 #01 函数的定义,调用 2 #生日歌 3 def happy(): 4 print("Happy birthday to you!") 5 6 def sing(person): 7 happy() 8 happy() 9 print("Happy birthday, dear", person + "!") 10 happy() 11 12 def main(): 13 sing("Mike") 14 print() 15 sing("Lily") 16 print() 17 sing("Elmer") 18 19 main()
时间: 2024-10-10 10:32:38