Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2ac7f67

Browse files
committed
用 Python 生成 & 识别二维码
1 parent 8f1fc10 commit 2ac7f67

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

‎qrcode_demo/myqr.gif

-125 KB
Loading[フレーム]

‎qrcode_demo/myqr.png

-171 Bytes
Loading[フレーム]

‎qrcode_demo/myqr_demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
version:容错率
66
save_name:保存的名字
77
'''
8-
# myqr.run(words='http://www.justdopython.com/',
8+
# myqr.run(words='https://www.baidu.com/',
99
# version=1,
1010
# save_name='myqr.png')
1111

1212
'''
1313
picture:生成二维码用到的图片
1414
colorized:False 为黑白,True 为彩色
1515
'''
16-
# myqr.run(words='http://www.justdopython.com/',
16+
# myqr.run(words='https://www.baidu.com/',
1717
# version=1,
1818
# picture='bg.jpg',
1919
# colorized=True,
2020
# save_name='pmyqr.png')
2121

22-
myqr.run(words='http://www.justdopython.com/',
22+
myqr.run(words='https://www.baidu.com/',
2323
version=1,
2424
picture='my.gif',
2525
colorized=True,

‎qrcode_demo/pmyqr.png

-2.75 KB
Loading[フレーム]

‎qrcode_demo/qr_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import qrcode
22

33
# # 二维码内容
4-
# data = 'http://www.justdopython.com/'
4+
# data = 'https://www.baidu.com/'
55
# # 生成二维码
66
# img = qrcode.make(data=data)
77
# # 显示二维码
@@ -22,7 +22,7 @@
2222
border=3,
2323
)
2424
# 二维码内容
25-
data = 'http://www.justdopython.com/'
25+
data = 'https://www.baidu.com/'
2626
qr.add_data(data=data)
2727
# 启用二维码颜色设置
2828
qr.make(fit=True)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /