TypeError: fill_walk() missing 1 required positional argument: ‘self‘
# 随机漫步# 1 创建建RandomWalk() 类from random import choiceclass RandomWalk(): """一个生成随机漫步数据的类""" def __init__(self, num_points=5000): """初始化随机漫步的属性""" self.num_points = num_points # 所有的随机漫步都始于(0,0) self.x_values = [
原创
2021-11-03 22:06:04 ·
492 阅读 ·
0 评论