赋值运算符的优先级比and高、比&&低,所以出现了这样的情况。 原文链接:https://chasjd.com/posts/8e4c70ac/ 转载于:https://www.cnblogs.com/chasjd/p/9383665.html