how to compare two files and print mismatched line number in python?
问题 I have two files which contains same number of lines. "file1.txt" contains following lines: Attitude is a little thing that makes a big difference The only disability in life is a bad attitude Abundance is, in large part, an attitude Smile when it hurts most "file2.txt" contains: Attitude is a little thing that makes a big difference Everyone has his burden. What counts is how you carry it Abundance is, in large part, an attitude A positive attitude may not solve all your problems I want to