0基础35讲--通讯录
import easygui as gimport pickle
f = open('通讯录.txt','wb')
msg = "[*真实姓名]为必填项。\n[*手机号码]为必填项。\n[*E-mail]为必填项。"
title = "帐号中心"
fields = ['*用户名','*真实姓名','固定电话','*手机号码','QQ','*E-mail']
x = g.multenterbox(msg,title,fields)
if x == 0 and x == 0 and x == 0:
g.msgbox('输入错误,请重新输入')
x = g.multenterbox(msg,title,fields)
pickle.dump(x,f)
f.close
h = open('通讯录.txt','rb')
x1 = pickle.load(h)
g.textbox(str(x)+"的联系方式如下:","通讯录",text = x1)
报错:输入不足,这个要如何实现通讯录内容保存到桌面,并且出现文本框核对?
求大神帮忙给改一下{:10_269:} {:10_266:}是错误太多了吗?
页:
[1]