新手上路
初級會員
- 舊站積分
- 0
- 舊站發表文章數
- 1
|
發表於 2013-2-16 20:48:25
|
顯示全部樓層
從最前面的4個夜來香下載的檔案
分別改名對應t1.wav, t2.wav, t3.wav, t4.wav (不要跟我說改個名子會有lost掉bit)
用python去比較, 結果就是.......根本一樣啊。
Python 2.7.3 (default, Dec 22 2012, 21:14:12)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> f1 = open("t1.wav", "rb")
>>> f2 = open("t2.wav", "rb")
>>> f3 = open("t3.wav", "rb")
>>> f4 = open("t4.wav", "rb")
>>> f1 = f1.read()
>>> f2 = f2.read()
>>> f3 = f3.read()
>>> f4 = f4.read()
>>> f1 == f2 == f3 == f4
True
>>> f1 == f2
True
>>> f2 == f3
True
>>> f3 == f4
True
>>> f1 == f2 == f3
True
>>> f2 == f3 == f4
True
>>> len(f1)
38996206
>>> len(f2)
38996206
>>> len(f3)
38996206
>>> len(f4)
38996206
>>>
-------------------------------------------------
"==" 是比較符號, 當數值內容是一樣的時候, 就會回傳True |
|