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.
我正在尝试比较两个文本文件并识别不同的行并将其保存在一个新的文本文件中,但我不知道该怎么做,因为我对 Python 非常陌生。有人可以帮我吗?
如果您使用的是 linux,您可以尝试以下命令:diff
diff
这是针对python diff doc