Skip to content

Latest commit

 

History

History
62 lines (30 loc) · 1.17 KB

File metadata and controls

62 lines (30 loc) · 1.17 KB

第3节 布尔值和运算符

❤️💕💕python是一种动态的解释形语言,由于python的普遍性,学会python能更快的解决问题,以及学习其他的知识。Myblog:http:https://nsddd.top


[TOC]

布尔值

根据条件是True还是 打印消息False

a = 200
b = 33

if b > a:
 print("b is greater than a")
else:
 print("b is not greater than a")

尝试

In [75]: a
Out[75]: 'Hello Word'

In [76]: a == "Hello Word"
Out[76]: True

In [77]: a == 'as'
Out[77]: False

END 链接