使用Python绘制漫步图

2021-09-27 08:14

阅读:795

标签:import   dom   otl   pen   不同   direction   image   from   imp   代码如下: 1 import matplotlib.pyplot as plt 2 from random import choice 3 class RandomWalk(): 4 def __init__(self,num_points=5000): 5 self.num_points=num_points 6 self.x_values=[0] 7 self.y_values=[0] 8 def fill_walk(self): 9 while len(self.x_values)


评论


亲,登录后才可以留言!