from random import choice
import matplotlib.pyplot as plt
class RandomWalk:#生成随机漫步数据的类
def __init__(self,num_points=5000):
self.num_points = num_points
#所有的漫步都食欲(0,0)
self.x_values =[0]
self.y_values =[0]
def fill_walk(self):#计算随机漫步包含的所有点
#不断漫步,直到列表到达指定长度
while len(self.x_values)
用python画出来的图像为:



