偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.
全部博文(1748)
分类: 其他平台
2019-02-27 17:29:36
点击(此处)折叠或打开
点击(此处)折叠或打开
Built-in types:
Primitive Type |
Serialization |
C++ |
Python2 |
Python3 |
bool (1) |
unsigned 8-bit int |
uint8_t (2) |
bool |
|
int8 |
signed 8-bit int |
int8_t |
int |
|
uint8 |
unsigned 8-bit int |
uint8_t |
int (3) |
|
int16 |
signed 16-bit int |
int16_t |
int |
|
uint16 |
unsigned 16-bit int |
uint16_t |
int |
|
int32 |
signed 32-bit int |
int32_t |
int |
|
uint32 |
unsigned 32-bit int |
uint32_t |
int |
|
int64 |
signed 64-bit int |
int64_t |
long |
int |
uint64 |
unsigned 64-bit int |
uint64_t |
long |
int |
float32 |
32-bit IEEE float |
float |
float |
|
float64 |
64-bit IEEE float |
double |
float |
|
string |
ascii string (4) |
std::string |
str |
bytes |
time |
secs/nsecs unsigned 32-bit ints |
|
|
|
duration |
secs/nsecs signed 32-bit ints |
|
|
点击(此处)折叠或打开