python - 如何将 python 2.7 功能设置为 Python 2.6?

标签 python windows python-2.7

我目前的工作是在 Windows 环境中使用 Python 2.6。但我对 Python 2.7 中添加的一些功能很感兴趣。 是否可以将某些功能(特别是“Collections.OrderedDict”)从 2.7 移动到 2.6?如果是这样,我们该怎么做?

最佳答案

看看http://pypi.python.org/pypi/ordereddict

它被宣传为

A drop-in substitute for Py2.7's new collections.OrderedDict that works in Python 2.4-2.6.

关于python - 如何将 python 2.7 功能设置为 Python 2.6?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6941402/

相关文章:

python - 使用 selenium chrome 设置代理地址

windows - 传递参数和文件名?

python - 如何在基于类的 View 中使用 user_passes_test 装饰器?

python-2.7 - 在窗口和远程 X11 中将 Tkinter 顶级窗口居中?

windows - 庆典 : nano: command not found at Windows git bash

python-2.7 - 如何进行 GQL 查询(使用 gcloud-python)

python - 如何使用本身就是外键的字段获取 Django 模型的对象列表?

Python:使用检查创建函数签名

python - 模拟粒子运动的好方法是什么?

IO 完成后的 Windows 线程切换延迟 - 微秒或毫秒