适用于2.5的纯Python有理数模块 [英] Pure Python rational numbers module for 2.5

查看:99
本文介绍了适用于2.5的纯Python有理数模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人看到过这样的事情吗?小型自给自足的模块是首选.

Has anybody seen such a thing? Small self-sufficient modules are preferred.

推荐答案

分数"模块.抓取fractions.py,numbers.py和abc.py;所有纯python模块.

The fractions module from 2.6 can be ripped out if necessary. Grab fractions.py, numbers.py, and abc.py; all pure python modules.

您可以从此处获取单个文件(2.6分支,2.7不起作用): http://hg.python.org/cpython/branches

You can get the single files from here (2.6 branch, 2.7 does not work): http://hg.python.org/cpython/branches

这篇关于适用于2.5的纯Python有理数模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆