摘要:
random_walk.py 阅读全文
摘要:
import matplotlib.pyplot as pltx_values = list(range(1,1000))y_values = [x**2 for x in x_values]#plt.scatter(x_values,y_values,s=40)#x修改线条的颜色# plt.scatter(x_values,y_values,c='red',edgecolor='none',s=... 阅读全文
摘要:
import matplotlib.pyplot as pltinput_values = [1,2,3,4,5]squares = [1,4,9,16,25] #设置线条的坐标值和宽度 # plt.plot(squares,linewidth=5)plt.plot(input_values,squares,linewidth=5) #设置图标标题,并给坐标轴加上标签plt.title("Squ... 阅读全文