其三十四
练习函数调用
打印函数名字就可以实现调用
def hello(): print("hello") hello()#单纯调用 for i in range(3):#循环调用 hello() if __name__ == '__main__':#main函数调用 hello()
结果为
hello
hello
hello
hello
hello
其三十四
练习函数调用
打印函数名字就可以实现调用
def hello(): print("hello") hello()#单纯调用 for i in range(3):#循环调用 hello() if __name__ == '__main__':#main函数调用 hello()
结果为
hello
hello
hello
hello
hello