- 博客(4)
- 收藏
- 关注
原创 python smtplib.SMTP()发送邮件报“UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xba in position 0: i
python smtplib.SMTP()发送邮件报“UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xba in position 0: invalid start byte”错误问题描述:在用python 用smtplib.SMTP()函数发生邮件时报出“UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xba in position 0: invalid start byte”错误。
2020-12-09 23:54:13
3017
6
原创 bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested: lxml
问题描述:在运行BeautifulSoup(html, ‘lxml’)代码时报出bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml。方法1:可改用BeautifulSoup(html, ‘html.parser’)运行方法2:如没有安装lxml库,即下载lxml库。方法3已有lxml库但运行依然出错。查看python文件夹libs文件夹中是否存在lxml重名文件。删除再重
2020-12-05 23:45:18
223
原创 python正则表达式0-100数字验证(包含0,100)
import retext = ‘100’result = re.search(‘0KaTeX parse error: Undefined control sequence: \d at position 7: |[1-9]\̲d̲?|100$’,text)print(result.group())
2020-08-13 23:39:11
1269
原创 module ‘requests‘ has no attribute ‘get‘,非文件名问题解决方法
module ‘requests’ has no attribute ‘get’,非当前文件名问题解决方法1.将pycharm里的requests库删除。2.查找当前项目文件下的requests.py文件修改名称或者删掉。3.在pycharm里重新下载requests库,即可运行...
2020-08-02 22:17:38
1569
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人