mirror of
https://github.com/x-hw/amazing-qr.git
synced 2025-07-15 01:24:37 +02:00
a7a1a762db9af1763ef331958cf33c16aa1e55ea
QR-Code
QR Code in Python
Python QR二维码生成器
Example 示例
python myqrcode.py -l H https://github.com/sylnsfar/QR-Code
Usage 用法
python myqrcode.py [-l [L,M,Q,H]] xxxxxx
-
The
myqrcode.py
is the main file.myqrcode.py
是主文件。 -
Argument
-l
or--level
means the Error Correction Level: L(Low), M(Medium), Q(Quartile) and H(High). The default level is Q, so that you can justpython myqrcode.py xxxxxxx
.参数
-l
或者--level
代表纠错等级:L、M、Q 和 H(从低到高)。默认使用的等级是 Q,所以可以直接python myqrcode.py xxxxx
。 -
xxxxxx
is the words that you are putting into a QR-Code. You can write a URL or a sentence.xxxxxx
代表要生成 QR 二维码的信息,可以是一个链接地址,也可以是其它字符串。
Supported 可用字符
-
Numbers:
0~9
数字 0 到 9
-
Letters:
a~z, A~Z
大小写的英文字母
-
Common punctuations:
常用英文标点符号和空格
· , . : ; + - * / \ ~ ! @ # $ % ^ & ` [ ] ( ) ? _ { } | and (space)
Languages
Python
100%