一、火焰图的生成。 1、采集原始CPU消耗数据:perf record -e cpu-clodk -g -p 3578 -o perf.data, 统计大概1-2分钟,ctrl+c中断即可。 2、使用perf script工具分析perf.data文件:perf script -i perf.dat ...
分类:
其他好文 时间:
2021-03-17 15:10:21
阅读次数:
0
基本开发环境: ·Python3.6 ·Pycharm 相关模块使用: import requests import time 目标网页分析: 选择一个影视栏目,F12或者鼠标右键检查,打开开发者工具,选择network,下滑网页 https://haokan.baidu.com/videoui/a ...
分类:
编程语言 时间:
2021-03-17 14:20:20
阅读次数:
0
from xlutils.copy import copy import xlrd # 加载已存在的xls old_workbook = xlrd.open_workbook('guoshun.xlsx') # 将已存在的excel拷贝进新的excel new_workbook = copy(old ...
分类:
其他好文 时间:
2021-03-17 14:13:15
阅读次数:
0
循环路径下的文件将所有的txt文件进行合并 from xlutils.copy import copy import xlrd # 加载已存在的xls old_workbook = xlrd.open_workbook('guoshun.xlsx') # 将已存在的excel拷贝进新的excel n ...
分类:
其他好文 时间:
2021-03-17 14:10:19
阅读次数:
0
仅供自己学习 思路: 同样是滞后处理,我们需要从最里面的括号开始反转,所以反转前的元素需要用栈存储。加入栈的条件是遇到(,因为只有遇到)才能开始反转。我们用一个cur 来存储当前括号内的字符。 每当我们遇到一个(,就将cur的字符串加入进栈里,并且将cur置空。如果遇到字母就加入进cur里。当遇到) ...
分类:
其他好文 时间:
2021-03-17 14:05:29
阅读次数:
0
# 图片爬取 import re import urllib import urllib.request def gethtml(url): page=urllib.request.urlopen(url) html=page.read() return html def getimg(html): ...
分类:
编程语言 时间:
2021-03-16 14:08:34
阅读次数:
0
一、 系统环境: Windows xp以上版本,电脑 二、 设计内容: 程序一共定义五个类,继承关系如图所示 首先我进行了主菜单主函数,会员登录,书记信息查看,购书。又在这些主菜单上进行相对应的子菜单的函数。主菜单如下: #include<string> #include<iostream> #in ...
分类:
其他好文 时间:
2021-03-16 14:02:51
阅读次数:
0
https://www.imperva.com/learn/application-security/osi-model/ What Is the OSI Model The Open Systems Interconnection (OSI) model describes seven layer ...
分类:
其他好文 时间:
2021-03-16 14:01:01
阅读次数:
0
font2 = {'family': 'Times New Roman', 'weight': 'normal', 'size': 12, } ax.legend(loc='lower center', bbox_to_anchor=(0.5, 1), fancybox=True, shadow=T ...
分类:
其他好文 时间:
2021-03-16 12:03:49
阅读次数:
0
# 1. 文件操作# 一个函数: open()函数,创建一个文件对象# 三个方法:read/write/close # 2.open()函数# 默认以只读方式r打开文件,并返回文件对象# open(filename, mode) filename文件名 mode访问模式# 2.1 打开文件# fil ...
分类:
其他好文 时间:
2021-03-16 12:01:10
阅读次数:
0