adsdatatypes.py 文件源码

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

项目:counsyl-pyads 作者: counsyl 项目源码 文件源码
def unpack(self, value):
        """Unpack a value using Python's struct.unpack()"""
        assert(self.pack_format is not None)
        # Note: "The result is a tuple even if it contains exactly one item."
        # (https://docs.python.org/2/library/struct.html#struct.unpack)
        # For single-valued data types, use AdsSingleValuedDatatype to get the
        # first (and only) entry of the tuple after unpacking.
        return struct.unpack(self.pack_format, value)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号