grep [选项] PATTERN [文件] 说明:grep(global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。 在每个 ...
分类:
系统相关 时间:
2020-07-01 16:11:56
阅读次数:
90
""" 抓取 解析 存储 """ import re #import ast from urllib import parse from datetime import datetime import requests from scrapy import Selector from models ...
分类:
其他好文 时间:
2020-06-29 18:51:16
阅读次数:
98
import re import requests from bs4 import BeautifulSoup from openpyxl import Workbook from openpyxl.styles import Alignment requests:网页爬取的第三方库 re:内容解析 ...
分类:
编程语言 时间:
2020-06-29 13:22:06
阅读次数:
66
一行代码实现 1-100之和? print(sum(range(1,101))) 如何在一个函数内部修改全局变量 # 使用global关键字 a = 10 def fn(): global a a = 4 fn() print(a) # 4 列出5个python标准库 # os 模块 # re 模块 ...
分类:
编程语言 时间:
2020-06-28 22:24:01
阅读次数:
154
循环依赖问题 假设可执行程序exe1使用了so1和so2中的函数,so1使用了so2的函数。编译so1时,肯定需要指定-lso2;编译exe1时,肯定需要指定-lso1,但是exe1间接依赖了so2,是否需要指定-lso2呢? 对于常规的NDK编译来说,是需要指定的,否则会报undefined re ...
分类:
其他好文 时间:
2020-06-28 20:30:37
阅读次数:
72
1.能够大致讲一下你们接口自动化框架是怎么搭建的吗? 好的,我们采用unittest和ddt数据驱动思想搭建测试框架,(对数据excel读取、yaml配置、Requests接口请求、Re参数化、Pymysql数据库效验、日志等模块实现封装),其中,用 1.Openpyxl来处理excel,存储测试数 ...
分类:
其他好文 时间:
2020-06-28 20:12:31
阅读次数:
168
1.首先备份原来的yum源 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 2.获取阿里的yum源覆盖本地官方yum源 wget -O /etc/yum.repos.d/CentOS-Base.re ...
分类:
其他好文 时间:
2020-06-28 12:44:31
阅读次数:
174
Python进阶 文件读、写 函数open:文件读写,默认读模式 open(路径文件名.后缀名) eg:file = open('D:\\tes.txt') content = file.read() print(content) file.close()读: read():从文档开始位置读取 re ...
分类:
编程语言 时间:
2020-06-28 00:39:54
阅读次数:
100
正则表达式:字符串模式,(判断字符串是否符合某一标准) import re 创建模式方法 -- search 创建模式对象pat,在使用对象进行search比对,返回值保存在m中 pat = re.compile("AA") ## 此处的AA是正则表达式,用来取验证其他字符串是否符合AA m = p ...
分类:
其他好文 时间:
2020-06-27 20:10:25
阅读次数:
71
测试文件:https://wwa.lanzous.com/is4hte2ulfc 代码处理 这道题是花指令相关题目,利用int 80h做中断。 首先将包含int 80h中断的sub_804857B,sub_80485C4函数和反调试函数sub_804865B全部nop掉。 接着,将 push 地址 ...
分类:
其他好文 时间:
2020-06-27 16:08:59
阅读次数:
230