Python __builtin__ 模块,oct() 实例源码

我们从Python开源项目中,提取了以下10个代码示例,用于说明如何使用__builtin__.oct()

项目:hakkuframework    作者:4shadoww    | 项目源码 | 文件源码
def oct(number):
        """oct(number) -> string

        Return the octal representation of an integer
        """
        return '0' + builtins.oct(number)[2:]
项目:packaging    作者:blockstack    | 项目源码 | 文件源码
def oct(number):
        """oct(number) -> string

        Return the octal representation of an integer
        """
        return '0' + builtins.oct(number)[2:]
项目:islam-buddy    作者:hamir    | 项目源码 | 文件源码
def oct(number):
        """oct(number) -> string

        Return the octal representation of an integer
        """
        return '0' + builtins.oct(number)[2:]
项目:FightstickDisplay    作者:calexil    | 项目源码 | 文件源码
def oct(number):
        """oct(number) -> string

        Return the octal representation of an integer
        """
        return '0' + builtins.oct(number)[2:]
项目:cryptogram    作者:xinmingzhang    | 项目源码 | 文件源码
def oct(number):
        """oct(number) -> string

        Return the octal representation of an integer
        """
        return '0' + builtins.oct(number)[2:]
项目:Repobot    作者:Desgard    | 项目源码 | 文件源码
def oct(number):
        """oct(number) -> string

        Return the octal representation of an integer
        """
        return '0' + builtins.oct(number)[2:]
项目:UMOG    作者:hsab    | 项目源码 | 文件源码
def oct(number):
        """oct(number) -> string

        Return the octal representation of an integer
        """
        return '0' + builtins.oct(number)[2:]
项目:beepboop    作者:nicolehe    | 项目源码 | 文件源码
def oct(number):
        """oct(number) -> string

        Return the octal representation of an integer
        """
        return '0' + builtins.oct(number)[2:]
项目:hackathon    作者:vertica    | 项目源码 | 文件源码
def oct(number):
        """oct(number) -> string

        Return the octal representation of an integer
        """
        return '0' + builtins.oct(number)[2:]
项目:yatta_reader    作者:sound88    | 项目源码 | 文件源码
def oct(number):
        """oct(number) -> string

        Return the octal representation of an integer
        """
        return '0' + builtins.oct(number)[2:]