資料:
http://www.cnblogs.com/pzxbc/archive/2012/03/18/2404715.html
http://bbs.chinaunix.net/thread-4192876-1-1.html
pickle.dump(obj, file, [,protocol])
def fun2(file_name, mylist): file = open(file_name, 'wb') pickle.dump(mylist, file, 0) file.close()
為了避免保存的file亂碼,在dump()里加上第三個參數,設為0(ASCII協議).