import matplotlib.pyplot as plt import numpy as np y = 1 x = 0 xx = np.random.random(100) yy = np.random.random(100) for i in range (0,100): y = 1.1*y - 0.2*x/y x = x + 0.01 xx[i] = x yy[i] = y print(xx) print(yy) plt.title("欧拉") plt.plot(xx, yy) plt.show()