Does return in Python stop the programme?

后端 未结 0 890
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-15 04:15
def recursiv_function(x):
    
    if (x > 10):
        return
    print("Hello Parameter is", x)
    recursiv_function(x+1)

recursiv_function(1)


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题