自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 2684 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 182

原创 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 1164

原创 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 1406 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除