用正则表达式去标记不会捕获嵌套的标记为了熟悉python3.4的re模块,我编写了一个函数来删除XML标记。我想让它递归以备备用: def detag(text,opentag='<',closetag='>'): ...2024-04-28 已阅读: n次