美文网首页
Python中的字节流结构格式定义

Python中的字节流结构格式定义

作者: 4thirteen2one | 来源:发表于2019-04-10 21:18 被阅读0次
    Format C Type Python type Standard size Notes
    x pad byte no value
    c char bytes of length 1 1
    b signed char integer 1 (1),(3)
    B unsigned char integer 1 (3)
    ? _Bool bool 1 (1)
    h short integer 2 (3)
    H unsigned short integer 2 (3)
    i int integer 4 (3)
    I unsigned int integer 4 (3)
    l long integer 4 (3)
    L unsigned long integer 4 (3)
    q long long integer 8 (2), (3)
    Q unsigned long long integer 8 (2), (3)
    n ssize_t integer (4)
    N size_t integer (4)
    e (7) float 2 (5)
    f float float 4 (5)
    d double float 8 (5)
    s char[] bytes
    p char[] bytes
    P void * integer (6)

    相关文章

      网友评论

          本文标题:Python中的字节流结构格式定义

          本文链接:https://www.haomeiwen.com/subject/rhxaiqtx.html