- 帖子
- 6
- 精华
- 0
- 积分
- 27
- 阅读权限
- 10
- 注册时间
- 2018-1-26
- 最后登录
- 2018-2-9
|
#-*-coding:utf-8 -*-
import pickle
text_data=['那个人好帅!','Hello world',123.15,True]
f=open('65.data','w')
pickle.dump(text_data,f)
f.close
f=open('65.data')
test1=pickle.load(f)
f.close()
print test1
输出结果:
====================== RESTART: E:/Python27/lesson61.py ======================
['\xe9\x82\xa3\xe4\xb8\xaa\xe4\xba\xba\xe5\xa5\xbd\xe5\xb8\x85\xef\xbc\x81', 'Hello world', 123.15, True]
>>>
怎么让输出结果是:['那个人好帅!','Hello world',123.15,True]
|
|