1. 程式人生 > >hausaufgabe--python 31 - Pickle

hausaufgabe--python 31 - Pickle

pickle python ext string alt img blog read ges

1-- pickle, transfer the target document to binary to save.

2, pickle_file, write

技術分享

3. pickle_file, read

技術分享

技術分享

To write a script to separet the text by ":" and save into different files:

技術分享

技術分享

技術分享

技術分享

Running result:

技術分享

Referred:

http://www.runoob.com/python/att-string-split.html

String.split (" : " , num)

num == split times by " : "

hausaufgabe--python 31 - Pickle