我正在使用Python3.5。我使用了一个while循环,并在其中更改了一个变量(用户已经定义了),用户输入该变量:while [input isn't what theuser is expected to enter]:
variable = eval(input("[Asking to enter a correct input]&q
我试图从用户输入中找到列表中最小的数字。我需要问用户列表中将有多少个数字(只接受正数,不接受字母),然后问他们列表中的数字是什么(只接受数字)。我如何检查这一点,并一直循环,直到号码是有效的?Scanner to read input from the command line inttotalInte