TypechoJoeTheme

安逸

统计
登录
用户名
密码
搜索到 3 篇与 的结果
2023-11-08

汇编与机器码

汇编与机器码
一、单字节指令06     push es    (注:以下的 es cs ss ds 都是段寄存器) 07     pop es 0e     push cs 16     push ss 17     pop ss 1e     push ds 1f      pop ds 26     es 27     daa            (注:加法后的十进制调整) 2e     cs 2f      das            (注:减法后的十进制调整) 36     ss 37     aaa            (注:加法后的ASCII调整) 3e     ds 3f     aas             (注:减法后的ASCII调整) 40     inc eax 41     inc ecx 42     inc edx 43     inc ebx 44     inc esp 45     inc ebp 46     inc esi 47     inc edi 48     dec eax 49     dec ecx 4a     dec edx 4b...
2023年11月08日
122 阅读
0 评论
2021-12-15

re.findall 用法

re.findall 用法
re.findall 用法正则 re.findall 的简单用法(返回string中所有与pattern相匹配的全部字串,返回形式为数组)语法:findall(pattern, string, flags=0)import rePython 正则表达式 re findall 方法能够以列表的形式返回能匹配的子串# print (help(re.findall)) # print (dir(re.findall)) str = 'aabbabaabbaa'一个 . 就 是匹配除 \n (换行符)以外的任意一个字符print(re.findall(r'a.b',str)) #['aab', 'aab'] 符号 * 前面的字符出现0次或以上print(re.findall(r'a*b',str)) #['aab', 'b', 'ab', 'aab', 'b'] 符号.* ,匹配从.前面为开始到后面为结束的所有内容print(re.findall(r'a.*b',str)) #['aabbabaabb'] 符号.*? ,遇到开始和结束就进行截取,因此截取多次符合的结果,中间没有字符也...
2021年12月15日
824 阅读
0 评论