six:基于 Python 的版本兼容性库项目

用户可借助该项目编写兼容 Python 2 和 3 的代码,它是一个兼容性库,提供实用函数平滑版本差异,支持 Python 2.7 及 3.3+,仅含一个 Python 文件便于集成。【此简介由AI生成】

Branch6Tags5

.. image:: https://img.shields.io/pypi/v/six.svg :target: https://pypi.org/project/six/ :alt: six on PyPI

.. image:: https://travis-ci.org/benjaminp/six.svg?branch=master :target: https://travis-ci.org/benjaminp/six :alt: six on TravisCI

.. image:: https://readthedocs.org/projects/six/badge/?version=latest :target: https://six.readthedocs.io/ :alt: six's documentation on Read the Docs

.. image:: https://img.shields.io/badge/license-MIT-green.svg :target: https://github.com/benjaminp/six/blob/master/LICENSE :alt: MIT License badge

Six is a Python 2 and 3 compatibility library. It provides utility functions for smoothing over the differences between the Python versions with the goal of writing Python code that is compatible on both Python versions. See the documentation for more information on what is provided.

Six supports Python 2.7 and 3.3+. It is contained in only one Python file, so it can be easily copied into your project. (The copyright and license notice must be retained.)

Online documentation is at https://six.readthedocs.io/.

Bugs can be reported to https://github.com/benjaminp/six. The code can also be found there.

Introduction

用户可借助该项目编写兼容 Python 2 和 3 的代码,它是一个兼容性库,提供实用函数平滑版本差异,支持 Python 2.7 及 3.3+,仅含一个 Python 文件便于集成。【此简介由AI生成】

Customize your domain