(5函数)编程实现happy()函数功能,运行后输出结果如下

样例输出

Happy birthday to you!
Happy birthday to me!
Happy birthday to make! 

 

参考答案

def happy(str="you"):
    print("Happy birthday to {}!".format(str))
happy()
happy("me")
happy("make")

 

posted @ 2022-10-05 16:34  淡淡的晓山横雾  阅读(129)  评论(0)    收藏  举报