Python學習之路14-生成資料

Python學習之路14-生成資料

2 生成散點圖我們使用matplotlib.pyplot中的scatter()函式來生成散點圖,將程式碼儲存到scatter_squares.py檔案中:我們使用了列表生成式來生成y軸的資料,並使用漸變色來繪製圖像,pyplot.cm.Bl...

2022-04-04