def qr_card(): creator = CardCreator(factory=weixin_factory) ret = creator.create_card_qrcode(card_id="pZ2qWt_rL3_vB9QwjtR8QHeRzNwU") print(ret)