python - `float.as_integer_ratio` 方法是否有等效的 Python C API?
问题描述
在普通的 Python 中,我们可以编写类似的东西
>>> (0.5).as_integer_ratio()
(1, 2)
有没有办法通过 Python C API 获得这个结果?我唯一看到的是一个 implementation。
解决方案
推荐阅读
- java - onStop() 和 onResume() SharedPreferences
- spring - 从联接表中删除值 spring boot
- oracle - Oracle 数据库的反应式 jdbc 驱动程序支持
- reactjs - Jest UI React js 组件 - 单元测试
- css - 将 CSS 文件上传到 Seaside FileLibrary 时出现问题
- javascript - img 标签 css 上方的线性渐变
- python - 如何使用 filter() 在 Python 中查找年龄限制?
- c++ - 从自然语言到 C++ 表达式
- php - 在yii2中将多维数组中的单个值记录到表中
- azure-application-insights - 按 IP 地址过滤 App Center 分析