Python最简单的函数(无参无返回值)2021-08-27

#定义了一个无参无返回值的函数
def myPrint():
    print("fanfan is a very good man!")
    print("fanfan is a nice man!")
    print("fanfan is a handsome man!")

myPrint()
myPrint()
myPrint()

你可能感兴趣的:(python)