常用函数int,float,bool,byte
int(100)
100
float(100.1)
100.1
bool(100)
True
bool(-1)
True
bool(100>100)
False
bytes(‘hello’, encoding=‘utf-8’)
b’hello’
常用函数int,float,bool,byte
int(100)
100
float(100.1)
100.1
bool(100)
True
bool(-1)
True
bool(100>100)
False
bytes(‘hello’, encoding=‘utf-8’)
b’hello’