def foo(var): if var == 5: var = 6 elif var == 6: var = 8 else: var = 10 return vardef bar(var): if var == 5: var = 6 if var == 6: var = 8 if var not in (5, 6): var = 10 return varprint foo(5) # 6print bar(5) # 10
欢迎分享,转载请注明来源:内存溢出
def foo(var): if var == 5: var = 6 elif var == 6: var = 8 else: var = 10 return vardef bar(var): if var == 5: var = 6 if var == 6: var = 8 if var not in (5, 6): var = 10 return varprint foo(5) # 6print bar(5) # 10
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)