數據結構與算法python語言實現 Michael T.Goodrich- Chapter3&Chapter4課後習題

R3.1以log爲座標畫出函數4n、4nlogn、2n3、n3、2n四個圖形 import numpy as np import matplotlib.pyplot as plt import math a = plt.subplot(1,1,1) x = np.arange(10,200,5) y2 =[4*m*math.log(m,2)for m in x] #這裏b表示blue,g表示gr
相關文章
相關標籤/搜索