在此代码中,首先将计数设置为0,然后使用while True。在这本书中,我看到零和空字符串被计算为False,而所有其他值都被计算为True。如果是这样的话,那么程序如何执行while循环?# Finicky Counterwhile True: #while count is True
# end loop if coun
在我探索continue的过程中,我想编写一个同时包含break和continue的简单循环。我知道break会结束循环,但我不明白为什么print('Why won't this ever print!')从不被触发。In [21]: n = random.randint(0,5) print('It is