match函数只能从头开始匹配,不能从中间开始。而当返回值为none时,再次调用group()方法就会出现AttributeError: ‘NoneType’ object has no attribute 'group’这类报错。
使用os.popen出现UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte报错
最新推荐文章于 2025-06-06 21:47:13 发布
match函数只能从头开始匹配,不能从中间开始。而当返回值为none时,再次调用group()方法就会出现AttributeError: ‘NoneType’ object has no attribute 'group’这类报错。