用户:
氢FJWT查看:0 回复:0 评论:0 创建时间:2022-01-23T15:18:12
说起二维码,大家不陌生吧? 俺今天就教教大家——怎么用python做qrcode!(我以mac的3.8为例) step1: 导入qrcode库,因为我没有,所以打开终端,输入: >bash 接下来是: >pip3 ...#这里会显示一大堆东西 >pip3installqrcode 就好了。 代码: fromqrcodeimport* step2: 把二维码放进里面。 img=make('https://shequ.codemao.cn/') step3: show,完工。 img.show() 附代码: fromqrcodeimport* img=make('https://shequ.codemao.cn/')#也可以输其他你喜欢的东西 img.show()