谢谢你的时间。我以一种简单的方式解决了问题,列出了清单
List = [(self.chckbox_name.isChecked() , "#name or string I need to be returned if condition is true") , ...etc ]List_of_checked =[]List_of_unchecked = []for i, v in List: if i == True: List_of_checked.append (v) else: List_of_unchecked.append (v)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)