) in D:\JenkinsProjects\Workspace\proj_PVS-Studio_Setup\WorkDir\PVS-Studio\PVS-Studio\Analyzer\Core\Walkers) in D:\JenkinsProjects\Workspace\proj_PVS-Studio_Setup\WorkDir\PVS-Studio\PVS-Studio\Analyzer\Core\Walkers) in D:\JenkinsProjects\Workspace\proj_PVS-Studio_Setup\WorkDir\PVS-
我被要求编写100名随机步行者的代码,每个人都有1000步。然后画出100名步行者的平均步数。我能把所有的步行者都画成一幅图,但却找不到一种方法来画出平均水平。任何帮助都将不胜感激。谢谢。import numpy as npimport random
N = 100 def randomwalk1D(n): # Generate the time points [1, 2, 3, ... , n]