gpt4 book ai didi

python - python如何区分有符号和无符号数据类型?

转载 作者:太空宇宙 更新时间:2023-11-04 08:04:35 30 4
gpt4 key购买 nike

在 Java 或 C++ 中,我们有一种称为 unsigned doubleunsigned int 等的数据类型。python 如何区分它们?我问这个是因为在某些情况下我们知道数字不会是负数所以最好使用 unsigned。两种数据类型的范围不同。

我已经经历过类似的question但它解决了总体思路。

最佳答案

事实并非如此。 Python 内置类型没有这种区别,因为没有无符号数字类型。

关于python - python如何区分有符号和无符号数据类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33766889/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com