1 import re 2 s = 'hello python' 3 pattern = 'hello' 4 v = re.match(pattern,s) 5 print(v) 6 #print(dir(v)) 7 print(v.group()) # 返回当前匹配的字符串 8 print(v.s ...
分类:
其他好文 时间:
2020-05-17 13:27:27
阅读次数:
191
DATAS SEGMENT STR1 DB 'ABCD$' STR2 DB 'ABCD$' len equ $-str2 ;len DW str2-str1 match DB 'EQU:',0DH,0AH,'$' nomatch DB 'NOEQU:', 0DH, 0AH, '$' change D ...
分类:
其他好文 时间:
2020-05-16 20:24:42
阅读次数:
83
1、官网上下载allure压缩包,解压到本地文件夹(文件夹尽量为英文并且路径简单) 2、添加PATH环境变量 进入allure文件夹的bin目录下,会看到allure.bat文件,将此路径设置为系统环境变量path下 3、校验是否安装成功 在cmd中运行 allure命令,如下图所示即为安装成功 与 ...
分类:
编程语言 时间:
2020-05-16 14:03:16
阅读次数:
309
1. 判断是ios还是android let u = navigator.userAgent, let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //glet isIOS = !!u.match(/\(i[^; ...
分类:
移动开发 时间:
2020-05-15 18:05:52
阅读次数:
100
Unix does not have a command specifically for renaming files. Instead, the mv command is used both to change the name of a file and to move a file int ...
分类:
其他好文 时间:
2020-05-15 09:41:05
阅读次数:
60
Navicat 远程连接docker容器中的mysql 报错1251 - Client does not support authentication protocol 解决办法 Navicat 远程连接docker容器中的mysql 报错1251 - Client does not support ...
分类:
数据库 时间:
2020-05-14 23:50:42
阅读次数:
85
问题描述yum匹配不到httpd 解决方案 查看一下yum 把这行注释掉 再次执行 OK ...
分类:
Web程序 时间:
2020-05-14 21:01:30
阅读次数:
94
Problem Description这是一个简单的游戏,在一个n*n的矩阵中,找n个数使得这n个数都在不同的行和列里并且要求这n个数中的最大值和最小值的差值最小。 Input输入一个整数T表示T组数据。对于每组数据第一行输入一个正整数n(1<=n<=100)表示矩阵的大小。接着输入n行,每行n个数 ...
分类:
其他好文 时间:
2020-05-14 13:29:19
阅读次数:
60
安装 npx @docusaurus/init@next init my-website facebook 错误 解决 出现问题的原因是node_cache的路径中存在空格 E:\document>npm config set prefix D:\Program Files\nodejs\node_ ...
分类:
Web程序 时间:
2020-05-14 00:57:10
阅读次数:
485