摘要:
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... 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
2018-04-2319:12:36 阅读全文