📜  满足条件时停止函数继续运行 python 代码示例

📅  最后修改于: 2022-03-11 14:46:17.901000             🧑  作者: Mango

代码示例1
# use return e.g
def test_function(input):
  if input == 5:
    return 
  else:
    print(input)
    
#f you run 
test_function(5)
#the function will simply just end