小编use*_*318的帖子

为什么4 <3'在Python 2中返回True?

为什么在Python 2 中4 < '3'返回True

是因为当我在一个数字周围放置单引号时,Python认为它是一个字符串,字符串比数字大吗?

python comparison operators python-2.x

23
推荐指数
2
解决办法
3155
查看次数

标签 统计

comparison ×1

operators ×1

python ×1

python-2.x ×1