摘要:
end 阅读全文
posted @ 2017-10-11 23:48
爱你无目的
阅读(246)
评论(0)
推荐(0)
摘要:
end 阅读全文
posted @ 2017-10-11 23:07
爱你无目的
阅读(198)
评论(0)
推荐(0)
摘要:
1 >>>a=10 2 >>>b=5 3 >>>list=[1,2,3,4,5] 4 >>>print(a in list) 5 False 6 >>>print(a not in list) 7 True 8 #a在list集合,这是一个假命题; 9 #a不在list集合,这是一个真命题。 1 > 阅读全文
posted @ 2017-10-11 22:44
爱你无目的
阅读(212)
评论(0)
推荐(0)
摘要:
>>>a or b 10#如果a是非 0,它返回 a 的值,否则它返回 b 的计算值。 >>>not a False >>>not b False >>>not -1 False >>>not False True >>>not True False#如果 x 为 True,返回 False 。如果 阅读全文
posted @ 2017-10-11 16:34
爱你无目的
阅读(112)
评论(0)
推荐(0)
摘要:
今天开始学位运算符.还算OK,基础知识. >>>a=60 # (0011 1100) >>>b=13 # (0000 1101) 位与运算(&): >>>c=a&b # 0011 1100 # 0000 1101 # = 0000 1100 >>>print(c) >>>12 位或运算(|): >> 阅读全文
posted @ 2017-10-11 09:01
爱你无目的
阅读(238)
评论(0)
推荐(0)

浙公网安备 33010602011771号