file diff
-
[Python] comparing a file and b file (파일 비교 하기)Python/Python Programming 2019. 10. 10. 12:55
filecmp.cmp : a파일과 b파일을 비교하여, 같으면 True, 다르면 False를 반환 samplefile_1.txt samplefile_2.txt 1 파이썬 2 python 3 iz 4 beautiful 1 파이선 2 python 3 is 4 beautiful 5 6 diff text file from filecmp import cmp print(cmp('samplefile_1.txt','samplefile_1.txt')) --------------------------------------------------- True print(cmp('samplefile_1.txt','samplefile_2.txt')) ----------------------------------------------..