How to avoid Python short circuit evaluation, in a while loop?

前端 未结 0 1271
清酒与你
清酒与你 2021-01-18 00:09

I noticed that a different order of while loop conditions gave me the different results:

while (s[l] == s[r] and l >= 0 and r < len(s)):
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题