使用numpy拟合预测趋势实现
使用numpy拟合预测人均GDP趋势文章目录实现代码结果图例数据[2]Tips实现代码#Headerimport numpy as npimport matplotlib as mplimport matplotlib.pyplot as pltfrom scipy.optimize import curve_fit#Define a function(here a exponential function is used)def func(x, a, b, c): return a