【文件属性】:
文件名称:标准类型运算符和内建函数-qt教学大纲
文件大小:5.26MB
文件格式:PDF
更新时间:2021-06-04 01:59:35
python 核心编程 中文版 高清文字版
表 4.5 标准类型运算符和内建函数
Operator/Function Description Resulta
String
‘‘ String representation st
Built‐in functions
cmp(obj1, obj2) Compares two objects in
repr(obj) String representation st
str(obj) String representation st
type(obj) Determines object type typ
Value comparisons
< Less than boo
> Greater than boo
<= Less than or equal to boo
>= Greater than or equal to boo
== Equal to boo
!= Not equal to boo
<> Not equal to boo
Object comparisons
is The same as boo
is not Not the same as boo
Boolean operators
not Logical negation boo
and Logical conjunction boo
or Logical disjunction boo
布尔比较总是返回 True 或 False