# 第六次 使用畫圖套件 matplotlib.pyplot ``` import matplotlib.pyplot as plt a=[1,2,3,4,5] b=[1,2,3,4,5] plt.scatter(x=a,y=b,s=5) plt.axis('square') plt.xlim(0,10) plt.ylim(0,10) print(f') plt.show() ``` xlim=x的範圍,ylim=y的範圍 ``` dic ={'watermelon':100,'apple':40} print (dic['watermelon']) ```
{"metaMigratedAt":"2023-06-16T22:08:59.803Z","metaMigratedFrom":"Content","title":"第六次","breaks":true,"contributors":"[{\"id\":\"a37784b2-dfdd-48af-953c-150fcdd2af12\",\"add\":345,\"del\":60}]"}
Expand menu