摘要: random_walk.py 阅读全文
posted @ 2018-10-29 23:21 Bambooboo 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 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=... 阅读全文
posted @ 2018-10-29 00:33 Bambooboo 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2018-10-29 00:30 Bambooboo 阅读(582) 评论(0) 推荐(0) 编辑
摘要: #/use/bin/python #encoding=utf-8 filename="WinPMT.log" filename_1="WinPMT_stress.log" with open(filename_1,"w") as file_object_1: file_object_1.write( 阅读全文
posted @ 2018-10-16 10:58 Bambooboo 阅读(118) 评论(0) 推荐(0) 编辑