TypeError: expected string or bytes-like object

  记录下编写代码过程中遇到的错误原因;

正则匹配findall函数返回的是列表,匹配对象也应为str

借帖百度经验;

https://jingyan.baidu.com/article/e52e36151355de40c60c51b5.html

原文地址:https://www.cnblogs.com/feigebaqi/p/10100733.html