摘要:
# coding = utf-8from matplotlib import pyplot as pltimport randomfrom matplotlib import font_managerimport matplotlib#matplotlib设置字体#法一:适用于windows/lin 阅读全文
posted @ 2020-03-20 14:32
Bambo0
阅读(811)
评论(0)
推荐(0)
摘要:
# coding=utf-8from matplotlib import pyplot as pltx = range(2,26,2)y = [15,13,14.5,17,20,25,26,26,24,22,18,15]fig = plt.figure(figsize=(20,8),dpi=80)# 阅读全文
posted @ 2020-03-20 14:28
Bambo0
阅读(189)
评论(0)
推荐(0)
摘要:
from matplotlib import pyplot as pltinterval = [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 60, 90] # 时间width = [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 15, 30, 阅读全文
posted @ 2020-03-20 14:25
Bambo0
阅读(450)
评论(0)
推荐(0)
摘要:
# coding = utf-8from matplotlib import pyplot as pltimport randomy = [random.randint(90, 181) for i in range(250)] #随机生成250个大小在90-180的数字列表bin_width = 阅读全文
posted @ 2020-03-20 14:23
Bambo0
阅读(1172)
评论(0)
推荐(0)
摘要:
def __init__(self, url, start_page, pages, page_size): """ 初始化 @param url: 爬取主网址 @param start_page: 起始页码 @param pages: 总页码(截止页码) @param page_size: 每页的 阅读全文
posted @ 2020-03-20 14:18
Bambo0
阅读(357)
评论(0)
推荐(0)
摘要:
pd.set_option('display.float_format',lambda x: '%.2f'%x) pd.set_option('display.expand_frame_repr',False) #显示所有列 pd.set_option('display.max_columns', 阅读全文
posted @ 2020-03-20 14:16
Bambo0
阅读(1699)
评论(0)
推荐(0)

浙公网安备 33010602011771号