正在加载图片...
Environment Diagram times 2 def repeated(f,n,x): while n 0: x f(x) n-=1 return X repeated(lambda x:x*x,times,3) repeated(square,times,3)Environment Diagram times = 2 def repeated(f, n, x): while n > 0: x = f(x) n -= 1 return x def square(x): return x * x repeated(square, times, 3) times = 2 def repeated(f, n, x): while n > 0: x = f(x) n -= 1 return x repeated(lambda x: x*x, times, 3)
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有