Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在两个 HTML 页面源上运行差异机制来踢出所有生成的数据(如用户会话等)。我想知道是否有一个 python 模块可以做到这一点,并返回包含差异的元素(所以我将在其他来源的其余代码中踢他)
您可以使用 difflib 模块。它作为标准 python 库的一部分提供。