python 直方圖
import matplotlib.pyplot as plt import numpy as np pop = np.random.randint(0,100,100) pop n,bins,patches = plt.hist(pop,bins=20) plt.show()
import matplotlib.pyplot as plt import numpy as np pop = np.random.randint(0,100,100) pop n,bins,patches = plt.hist(pop,bins=20) plt.show()