摘要:
# coding = utf-8from matplotlib import pyplot as pltimport randomfrom matplotlib import font_managerimport matplotlib#matplotlib设置字体#法一:适用于windows/lin 阅读全文
摘要:
# 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)# 阅读全文
摘要:
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, 阅读全文
摘要:
# coding = utf-8from matplotlib import pyplot as pltimport randomy = [random.randint(90, 181) for i in range(250)] #随机生成250个大小在90-180的数字列表bin_width = 阅读全文
摘要:
def __init__(self, url, start_page, pages, page_size): """ 初始化 @param url: 爬取主网址 @param start_page: 起始页码 @param pages: 总页码(截止页码) @param page_size: 每页的 阅读全文
摘要:
pd.set_option('display.float_format',lambda x: '%.2f'%x) pd.set_option('display.expand_frame_repr',False) #显示所有列 pd.set_option('display.max_columns', 阅读全文