001、0在linux 中表示True?
root@PC1:/home/test2# [ 3 -gt 1 ] ## 判断为真, 这$?为0, True为0?? root@PC1:/home/test2# echo $? 0
002、python 中True表示为1
>>> False + False ## python 中 False为0, True为1 0 >>> False + True 1 >>> True + True 2
003、c中True为非0, False为0
#include <stdio.h> int main(void) { if (0) ## False为0 { puts("000"); } else ## 非0位True { puts("no 0"); } return 0; }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。