From d7f06c81360e58320f769d238f6e2af829452480 Mon Sep 17 00:00:00 2001 From: sylnsfar Date: Tue, 30 Aug 2016 21:31:51 +0800 Subject: [PATCH] update README --- README.md | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 7db5715..dcb882f 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,7 @@ # QR-Code -QR Code in Python +**QR Code in Python ** -Python QR二维码生成器 - -### Usage 用法 - -```python -python myqrcode.py [-l [L,M,Q,H]] xxxxxx -``` +**Python QR二维码生成器** ### 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) +### 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 可用字符 * Numbers: 0~9 + + 数字 0 到 9 + * Letters: a~z, A~Z -* Common punctuations: , . : ; + - * / \ ~ ! @ # $ % ^ & ` [ ] ( ) ? _ { } | and space \ No newline at end of file + + 大小写的英文字母 + +* Common punctuations: ·, . : ; + - * / \ ~ ! @ # $ % ^ & ` [ ] ( ) ? _ { } | and space + + 常用标点符号(**英文标点**)和空格 + + ​ \ No newline at end of file