error_reporting(E_ALL & ~E_NOTICE); error_reporting(E_ALL ^ E_NOTICE); A 和 B 为两个集合,且 B 为 A 的子集,那么 A xor B === A and (not B)。 所以二者并无区别。