标签: python loops parsing boolean expression
我了解python in运算符已重载,但我不了解解释器如何区分不同的用法;我也找不到文档来理解它。
为什么是
x = 1 for x in (1,2,3): print(x)
未解析为
for true