def Func(x, a, b):
a, b = x+a+b, 2*(x+a+b)
return a, b
A, B = 0, 0
for X in [0,1,2]:
A, B = Func(X, A, B)
print(A, B)
想了半天,没想出来
1
6IbA2bj5ip3tK49j 2020-02-09 13:53:14 +08:00
能
|