- 博客(3)
- 收藏
- 关注
转载 Python爬虫要用到的正则表达式
1.正则表达式的符号与方法常用符号:点号,星号,问号与括号(小括号).:匹配任意字符,换行符\n除外 *:匹配前一个字符0次或无限次 ?:匹配前一个字符0次或1次 .*:贪心算法 .*?:非贪心算法 ():括号内的数据作为结果返回常用方法:findall, search, subfindall:匹配所有符合规律的内容,返回包含结果的列表 search:匹配并提取第一个规律的内容,返回一个正则表达式对象(object) sub:替换符合规律的内容,返回替换后的值1)find
2021-11-03 16:56:38
313
原创 Alert The AC power adapter wattage and type cannot be determined. (戴尔电脑开机)
戴尔笔记本黑屏 The AC power adapter wattage and type cannot be determined(电源适配器不能被正确识别) Thebattery may not charge(电池可能无法充电) The system will adjust the performance to match the power available(系统将自行调整性能配置以适应现有的电量) Please connect a DELL 65W ACadapt.
2021-10-29 15:47:24
50612
2
原创 Python学习:Pycharm无法安装第三方库,错误代码Non-zero exit code (1)
pip安装包报错Could not find a version that satisfies the requirement pymysql (from versions: none)上图: 第一种可能: 这时可能需要我们升级一下pip版本,于是执行命令 python -m pip install --upgrade pip 执行完后发现还是报一样的错误, 第二种可能: 这时考虑换一个pip源 pip install pymysql -i https:/.
2021-10-19 13:44:16
848
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人