我的随机化模型中有一个BooleanField (ran_bug),显示为复选框。单击复选框可以显示另外两个非强制性字段(ran_dem_nom和ran_dem_dat)。我的问题是,当我‘选中’复选框时,它返回'on‘而不是true。2", blank=True)
ran_bug = models.BooleanField("Use of alternative randomization procedure?", re
当我在底部使用print语句,而不是接收True或False时,python返回"None“。下面可以看到我的代码,并对任何改进表示赞赏。if rev_pos_word_vert == validate_words: #Checks if the reversed bottom to top matches
return Truepos_word_hor == validate_words: #Checks if the string vertically fr