📌  相关文章
📜  python 检查数字是浮点数还是整数 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:43.962000             🧑  作者: Mango

代码示例1
# check if a number is int or float

isinstance(x, int) # integer
isinstance(x, float) # float

import numbers
isinstance(x, numbers.Integral) # Long Int