bool值类型只有两个值 (True,False)#布尔值
str int bool(Turea,False)之间的转化
str() int() bool() 本身是内置函数
str------>int a="256151353" 元素必须为数字,否则报错
str------>bool 空串是False 不为空全部为True
int------>bool 0为False , 非0全部为True
bool------>int True是1 False是0
bool------>str "True","False"
学到的内置函数
print()
input()
type()
int()
str()
bool()
#比较运算符
== 比较两个对象的值是否相同
is 比较的是内存地址是否相同
看内存地址的方法 id(对象)
原文:https://www.cnblogs.com/computer123/p/11685107.html