码迷,mamicode.com
首页 > 编程语言 > 详细

hausaufgabe--python 31 - Pickle

时间:2017-08-26 10:21:31      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:diff   .com   技术分享   files   python   binary   result   ima   nsf   

 

 

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

标签:diff   .com   技术分享   files   python   binary   result   ima   nsf   

原文地址:http://www.cnblogs.com/Shareishappy/p/7421132.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!