pbf.statement.ImageStatement

 1from . import Statement
 2
 3
 4class ImageStatement(Statement):
 5    def __init__(self, url: str = 'https://pbf.xzynb.top/statics/image/head.jpg', file: str = 'image.image',
 6                 type: str = None, cache: int = 0, id: int = 40000, c: int = 2) -> None:
 7        super().__init__("image", **{
 8            "url": url,
 9            "file": file,
10            "type": type,
11            "cache": cache,
12            "id": id,
13            "c": c,
14        })
class ImageStatement(pbf.statement.Statement):
 5class ImageStatement(Statement):
 6    def __init__(self, url: str = 'https://pbf.xzynb.top/statics/image/head.jpg', file: str = 'image.image',
 7                 type: str = None, cache: int = 0, id: int = 40000, c: int = 2) -> None:
 8        super().__init__("image", **{
 9            "url": url,
10            "file": file,
11            "type": type,
12            "cache": cache,
13            "id": id,
14            "c": c,
15        })
ImageStatement( url: str = 'https://pbf.xzynb.top/statics/image/head.jpg', file: str = 'image.image', type: str = None, cache: int = 0, id: int = 40000, c: int = 2)
 6    def __init__(self, url: str = 'https://pbf.xzynb.top/statics/image/head.jpg', file: str = 'image.image',
 7                 type: str = None, cache: int = 0, id: int = 40000, c: int = 2) -> None:
 8        super().__init__("image", **{
 9            "url": url,
10            "file": file,
11            "type": type,
12            "cache": cache,
13            "id": id,
14            "c": c,
15        })

初始化Statement对象。

Parameters
  • type: str CQ类型
  • kwargs: **dict CQ数据