python - python3, in help(int) text, what is the Data descriptors described?
问题描述
When you get the help string for int types using help(int). The very last part is:
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
So these are attributes of the complex type and fraction class, so why are they listed here in relation to ints. Are the some type of global data descriptor?
解决方案
推荐阅读
- c# - AsNoTracking method throwing error in linq statement
- sql - 在一列中结合一个案例和一个 Coalese
- python - 使用扩散方程的矩阵求逆计算沿棒的温度分布
- networking - Fiddler:在哪里为 m_SimulateModem 添加 IF 语句?
- jboss - Openshift / Keycloak 4.8.3。登录到管理控制台无限重定向循环
- databricks - Databricks - How to change a partition of an existing Delta table?
- python - Python 列表连接——在开头或结尾包含分隔符
- javascript - 如何使用 map 反转数组?
- javascript - 查找 HTML 类并根据文本删除它?
- javascript - 如何在对象数组javascript中按键获取值?