delphi中and和or的特殊用法

1=1

10=2

100=4

1000=8

 

1 or 2 = 3(11);

1 and 3 = 1;

2 and 3 = 2;

 

2 or 4 = 6(110);

2 and 6 = 2;

4 and 6 = 4;

posted on 2019-07-03 19:27  癫狂编程  阅读(1354)  评论(0编辑  收藏  举报

导航

好的代码像粥一样,都是用时间熬出来的