1
0
mirror of https://github.com/x-hw/amazing-qr.git synced 2025-08-10 22:41:23 +02:00

update README

This commit is contained in:
sylnsfar
2016-08-30 21:31:51 +08:00
parent 7f43a96cf9
commit d7f06c8136

View File

@@ -1,13 +1,7 @@
# QR-Code # QR-Code
QR Code in Python **QR Code in Python **
Python QR二维码生成器 **Python QR二维码生成器**
### Usage 用法
```python
python myqrcode.py [-l [L,M,Q,H]] xxxxxx
```
### Example 示例 ### Example 示例
@@ -17,8 +11,36 @@ python myqrcode.py -l H https://github.com/sylnsfar/QR-Code
![](https://github.com/sylnsfar/QR-Code/blob/master/example/qrcode.jpg) ![](https://github.com/sylnsfar/QR-Code/blob/master/example/qrcode.jpg)
### Usage 用法
```python
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 just `python 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 可用字符 ### Supported 可用字符
* Numbers: 0~9 * Numbers: 0~9
数字 0 到 9
* Letters: a~z, A~Z * Letters: a~z, A~Z
* Common punctuations: , . : ; + - * / \ ~ ! @ # $ % ^ & ` [ ] ( ) ? _ { } | and space
大小写的英文字母
* Common punctuations: ·, . : ; + - * / \ ~ ! @ # $ % ^ & ` [ ] ( ) ? _ { } | and space
常用标点符号(**英文标点**)和空格