记录学习的一些链接

python3的类(class)的使用:https://www.runoob.com/python3/python3-class.html

Python指定概率获取随机元素:文章中提供了两种方法,目前选用第一种来做https://o0xmuhe.github.io/2017/12/30/Python%E6%8C%87%E5%AE%9A%E6%A6%82%E7%8E%87%E8%8E%B7%E5%8F%96%E9%9A%8F%E6%9C%BA%E5%85%83%E7%B4%A0/

Python plt 画图:https://blog.csdn.net/majinlei121/article/details/83994935

Python range 循环:https://www.runoob.com/python/python-func-range.html

Python Zipf distribution(Zipf分布)生成:https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.random.zipf.html

import numpy as np
a = 2 # parameter
s = np.random.zipf(a,1000)
print (s) # list

特殊方法才能查到的学习资料

Zipf distribution的介绍:https://en.wikipedia.org/wiki/Zipf%27s_law

在这里插入图片描述

发布了79 篇原创文章 · 获赞 79 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/MustImproved/article/details/105168780
今日推荐