摘要: import numpy as npa=np.random.random()#用于生成一个0到1的随机浮点数: 0 <= n < 1.0print(a)0.7720009033229526a=np.random.uniform(60,80)#用于生成一个指定范围内的随机符点数,两个参数其中一个是上限 阅读全文
posted @ 2018-09-14 15:28 时间带着假象流淌 阅读(1524) 评论(0) 推荐(0) 编辑
摘要: #plt.subplot的使用 #使用figure中subplot的使用 阅读全文
posted @ 2018-09-14 10:17 时间带着假象流淌 阅读(1980) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as pltx = [4, 9, 21, 55, 30, 18]labels = ['math', 'history', 'chemistry', 'physics', 'biology','Enrlish']explode = [0, 0.01, 阅读全文
posted @ 2018-09-14 08:55 时间带着假象流淌 阅读(1246) 评论(0) 推荐(0) 编辑