Generate Qrcode Using Python

Generate Qrcode using qrcode python library

1- Import qrcode library

import qrcode

Enter fullscreen mode Exit fullscreen mode

2- Declare url variable

url = "www.dev.to"

Enter fullscreen mode Exit fullscreen mode

3- Generate Qrcode

code = qrcode.make(url)

Enter fullscreen mode Exit fullscreen mode

4- Choose Filename & Save

code.save("my_qrcode")

Enter fullscreen mode Exit fullscreen mode

原文链接:Generate Qrcode Using Python

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容