马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
import easygui as g
title = "账号中心"
msg = "请输入账号信息"
fields = ["*用户名","*真实姓名","固定电话","*手机号码","QQ","*E-mail"]
fieldsvalue = []
fieldsvalue = g.multenterbox(msg,title,fields)
while 1:
if fieldsvalue == None:
break
errmsg = ""
for i in range(len(fields)):
option = fields[i].strip()
if fieldsvalue[i].strip() == "" and option[0] =="*":
errmsg += ("【%s】为必填项\n\n" % fields[i])
if errmsg == "":
break
fieldsvalue = g.multenterbox(errmsg,title,fields,fieldsvalue)
print("用户的资料如下下:%s" % str(fieldsvalue))
fieldsvalue = g.multenterbox(errmsg,title,fields,fieldsvalue) 括号里的fieldsvalue的意义是啥,如何理解
|