摘要: demo07_身份运算符 ''' @author: xilh @since: 20200124 ''' a = 20 b = 20 if ( a is b ): print("1 - a 和 b 有相同的标识") else: print("1 - a 和 b 没有相同的标识") if ( a is 阅读全文
posted @ 2020-01-31 12:48 xiluhua 阅读(170) 评论(0) 推荐(0) 编辑
摘要: demo06_成员运算符 ''' @author: xilh @since: 20200124 ''' a = 10 b = 20 slist = [1, 2, 3, 4, 5 ]; if ( a in slist ): print("1 - 变量 a 在给定的列表中 slist 中") else: 阅读全文
posted @ 2020-01-31 12:40 xiluhua 阅读(157) 评论(0) 推荐(0) 编辑
摘要: demo05_逻辑运算符 ''' @note: https://www.runoob.com/python/python-operators.html @author: xilh @since: 20200124 ''' a = 10 b = 20 if a and b : print("1 - 变 阅读全文
posted @ 2020-01-31 12:33 xiluhua 阅读(144) 评论(0) 推荐(0) 编辑
摘要: demo04_位运算符 ''' @note: https://www.runoob.com/python/python-operators.html @author: xilh @since: 20200124 ''' a = 60 # 60 = 0011 1100 b = 13 # 13 = 00 阅读全文
posted @ 2020-01-31 12:25 xiluhua 阅读(150) 评论(0) 推荐(0) 编辑
摘要: demo03_赋值运算符 ''' @note: https://www.runoob.com/python/python-operators.html @author: xilh @since: 20200124 ''' a = 21 b = 10 c = 0 c = a + b print("1. 阅读全文
posted @ 2020-01-31 12:16 xiluhua 阅读(178) 评论(0) 推荐(0) 编辑
摘要: demo02_比较运算符 ''' @note: https://www.runoob.com/python/python-operators.html @author: xilh @since: 20200124 ''' a = 21 b = 10 c = 0 f = 'abc' g = 'abc' 阅读全文
posted @ 2020-01-31 11:56 xiluhua 阅读(200) 评论(0) 推荐(0) 编辑