|
|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 bake 于 2018-2-5 22:44 编辑
help(easygui.multenter) 里面说
multenterbox(msg='Fill in values for the fields.', title=' ', fields=(), values=())
If there are fewer values than names, the list of values is padded with empty strings until the number of values is the same as the number of names.
大意说 Value 比 name 少,会自动添加空白的字符串使得二者在数量上相同(没理解错吧)
这样的话即使我什么都不填,其实也会生成由空白字符串组成的列表 类似于['','','','','','',] 这种,即无论怎样都不会是 None
既然这样
后面的示例里面还有一个
while 1:
if fieldValues == None:
break
这样的判断有什么意义,
小甲鱼零基础入门python 第35课课后习题的答案也有这样的判断(见图)
求解,这个 if fieldValues == None 到底有什么意义?
|
|