Or 有一个是1,就是1 exp1 exp2 result 0 0 0 0 1 1 1 0 1 1 1 1 ---------------------------------------------- And 都是1,才是1 exp1 exp2 result 0 0 0 0 1 0 1 0 0 1 1 1 ---------------------------------------------- Xor 不同是1 exp1 exp2 result 0 0 0 0 1 1 1 0 1 1 1 0 ---------------------------------------------- Eqv 相同才是1 exp1 exp2 result 0 0 1 0 1 0 1 0 0 1 1 1 ---------------------------------------------- Not ...... exp1 result 0 1 1 0 ---------------------------------------------- Imp 1->0是0,其它都是1 exp1 exp2 result 0 0 1 0 1 1 1 0 0 1 1 1 ======================================================= <% '00000000 00000001 '00000000 00000010 response.write (1 AND 2) & "<br>" '00000000,输出为0 response.write (1 OR 2) & "<br>" '00000011,输出为3 response.write (1 XOR 2) & "<br>" '00000011,输出为3 response.write (1 EQV 2) & "<br>" '11111100,输出为-4(即256-4=252) response.write ( NOT 2) & "<br>" '11111101,输出为-3(即256-3=253) response.write (1 IMP 2) & "<br>" '11111110,输出为-2(即256-2=254) %>
|