小编Wre*_*nch的帖子

条件运算符不匹配

当我在 python 中执行以下代码时

print(0<5<2)
Run Code Online (Sandbox Code Playgroud)

它给出 False 作为输出,但在 C++ 中也是一样的

std::cout<<(0<5<2);
Run Code Online (Sandbox Code Playgroud)

返回真

为什么会有这种矛盾?

c++ python conditional-statements

1
推荐指数
1
解决办法
54
查看次数

标签 统计

c++ ×1

conditional-statements ×1

python ×1