androconf.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:ApkParser 作者: yigitozgumus 项目源码 文件源码
def str2long(s):
    """Convert a string to a long integer."""
    if type(s) not in (types.StringType, types.UnicodeType):
        raise ValueError, 'the input must be a string'

    l = 0L
    for i in s:
        l <<= 8
        l |= ord(i)

    return l
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号