發表文章

目前顯示的是 1月, 2014的文章

Python 3.x 開啟檔案編碼錯誤

為了一個 'cp950' codec can't decode byte xxx 預設的編碼無法處理我想要開啟的文件編碼 今天弄了快一個下午 網路上有人提供的方法是 import sys reload(sys) sys.setdefaultencoding('utf-8') 但對我來說沒有用 最後發現原來只要在open文件時就先設定好編碼就OK了 like this open('file', 'r', encoding='utf-8') 有碰到的可以參考看看

The Big Four Banking Trojans

Carberp, Citadel, SpyEye, and Zeus Need to read more. Read it later. http://blog.kaspersky.com/the-big-four-banking-trojans/