当前位置: 首页>>代码示例>>Python>>正文


Python codecs.Codec方法代码示例

本文整理汇总了Python中codecs.Codec方法的典型用法代码示例。如果您正苦于以下问题:Python codecs.Codec方法的具体用法?Python codecs.Codec怎么用?Python codecs.Codec使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在codecs的用法示例。


在下文中一共展示了codecs.Codec方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='ascii',
        encode=Codec.encode,
        decode=Codec.decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamwriter=StreamWriter,
        streamreader=StreamReader,
    ) 
开发者ID:alsmith,项目名称:multicast-relay,代码行数:12,代码来源:ascii.py

示例2: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='idna',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamwriter=StreamWriter,
        streamreader=StreamReader,
    ) 
开发者ID:danielecook,项目名称:gist-alfred,代码行数:12,代码来源:codec.py

示例3: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='cp437',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )

### Decoding Map 
开发者ID:glmcdona,项目名称:meddle,代码行数:14,代码来源:cp437.py

示例4: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='cp874',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
开发者ID:glmcdona,项目名称:meddle,代码行数:15,代码来源:cp874.py

示例5: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='undefined',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamwriter=StreamWriter,
        streamreader=StreamReader,
    ) 
开发者ID:glmcdona,项目名称:meddle,代码行数:12,代码来源:undefined.py

示例6: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='mac-roman',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
开发者ID:glmcdona,项目名称:meddle,代码行数:15,代码来源:mac_roman.py

示例7: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='mac-greek',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
开发者ID:glmcdona,项目名称:meddle,代码行数:15,代码来源:mac_greek.py

示例8: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='mac-croatian',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
开发者ID:glmcdona,项目名称:meddle,代码行数:15,代码来源:mac_croatian.py

示例9: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='iso8859-11',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
开发者ID:glmcdona,项目名称:meddle,代码行数:15,代码来源:iso8859_11.py

示例10: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='iso8859-2',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
开发者ID:glmcdona,项目名称:meddle,代码行数:15,代码来源:iso8859_2.py

示例11: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='ptcp154',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )

### Decoding Map 
开发者ID:glmcdona,项目名称:meddle,代码行数:14,代码来源:ptcp154.py

示例12: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='iso8859-1',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
开发者ID:glmcdona,项目名称:meddle,代码行数:15,代码来源:iso8859_1.py

示例13: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='cp1256',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
开发者ID:glmcdona,项目名称:meddle,代码行数:15,代码来源:cp1256.py

示例14: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='cp863',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )

### Decoding Map 
开发者ID:glmcdona,项目名称:meddle,代码行数:14,代码来源:cp863.py

示例15: getregentry

# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import Codec [as 别名]
def getregentry():
    return codecs.CodecInfo(
        name='cp1253',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
开发者ID:glmcdona,项目名称:meddle,代码行数:15,代码来源:cp1253.py


注:本文中的codecs.Codec方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。