2018年4月23日
摘要: 1 from random import choice 2 class RandomWalk(): 3 4 def __init__(self, num_points=5000): 5 6 self.num_points = num_points 7 8 self.x_values = [0] 9 self.y_va... 阅读全文
posted @ 2018-04-23 23:35 朱律波 阅读(119) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as plt x_values=list(range(1,5001))y_values=[x**3 for x in x_values] plt.scatter(x_values,y_values,s=40)# 设置图表标题,并给坐标轴加上标签plt 阅读全文
posted @ 2018-04-23 20:10 朱律波 阅读(175) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as plt x_values=list(range(1,1001))y_values=[x**2 for x in x_values] plt.scatter(x_values,y_values,s=40)# 设置图表标题,并给坐标轴加上标签plt 阅读全文
posted @ 2018-04-23 19:45 朱律波 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 2018-04-2319:12:36 阅读全文
posted @ 2018-04-23 19:13 朱律波 阅读(102) 评论(0) 推荐(0) 编辑