Python

pickle 예제

Looka 2017. 5. 7. 14:37
#save
import pickle

html = "asdasda"
file = open('data','wb')
pickle.dump(html,file)
file.close()

#load
import pickle
file = open('data','rb')
html = pickle.load(file)
file.close()

print (html)
저작자표시 비영리 변경금지 (새창열림)