This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center。
在这种情况下:
swag = True
i = 0
while swag:
i=i+1
print(swag)
if i == 3:
swag = False
3圈后环会退出吗?
当赃物-检查是否有赃物存在或如果赃物是真实的
最佳答案
while swag:
将在swag
为“truthy”时运行,这将在swag
为True
时运行,并且在将swag
设置为False
时不会运行。
07-24 20:37