相关疑难解决方法(0)

什么是C中的size_t?

size_t在C中感到困惑.我知道它是由sizeof运营商返回的.但究竟是什么呢?它是数据类型吗?

假设我有一个for循环:

for(i = 0; i < some_size; i++)
Run Code Online (Sandbox Code Playgroud)

我应该使用int i;size_t i;

c int size-t

590
推荐指数
10
解决办法
68万
查看次数

比较int和float时Python什么时候进行类型转换?

为什么Python中返回True时,我比较intfloat具有相同价值的物品?

例如:

>>> 5*2 == 5.0*2.0
True
Run Code Online (Sandbox Code Playgroud)

python floating-point int python-3.x python-internals

8
推荐指数
1
解决办法
3005
查看次数

标签 统计

int ×2

c ×1

floating-point ×1

python ×1

python-3.x ×1

python-internals ×1

size-t ×1