def func():
    print('HelloWorld!')
x = -2
y = 3
x > 0 or func()
y < 0 or func()

递归需要消耗空间

def A(a, b):
    return B(a+b)
def B(x):
    return C(5, x)
def C(a, b):
    return a * b
print(A(10,20))

 

相关文章:

  • 2022-01-27
  • 2021-11-24
  • 2022-12-23
  • 2022-03-07
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案