import rere.sub('<.*?>', '', string)"i think mabe 124 + but I don't have a big experience it just how I see it in my eyes fun stuff"该
re.sub函数采用常规表达式,并将字符串中的所有匹配项替换为第二个参数。在这种情况下,我们正在搜索所有标签(
'<.*?>'),然后将其替换为(
'')。
将
?用于在
re非贪婪的搜索。
有关的更多信息
re module。

import rere.sub('<.*?>', '', string)"i think mabe 124 + but I don't have a big experience it just how I see it in my eyes fun stuff"该
re.sub函数采用常规表达式,并将字符串中的所有匹配项替换为第二个参数。在这种情况下,我们正在搜索所有标签(
'<.*?>'),然后将其替换为(
'')。
将
?用于在
re非贪婪的搜索。
有关的更多信息
re module。