wxbot.py 文件源码

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

项目:raspberrypi_api 作者: wwj718 项目源码 文件源码
def gen_qr_code(self, qr_file_path):
        string = 'https://login.weixin.qq.com/l/' + self.uuid
        qr = pyqrcode.create(string)
        if self.conf['qr'] == 'png':
            qr.png(qr_file_path, scale=8)
            show_image(qr_file_path)
            # img = Image.open(qr_file_path)
            # img.show()
        elif self.conf['qr'] == 'tty':
            print(qr.terminal(quiet_zone=1))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号