Share a simple and quick production of two-dimensional code, Python implementation.
1. Installation Preparation
Installed Python + Pycharm computer. I win7 + Python3.6 + Pycharm
2. Download the installation package repository
Python dimensional code needed to make a third-party library package myqr.
Installation: cmd command-line installation directly: PIP install myqr
3. Sample source code sharing
(1) First, make a simple two-dimensional code to my blog site, for example.
Blog URL: https://www.cnblogs.com/xiaoguan-bky/
Pycharm created in the project, the new production source .py file as follows:
After running correctly, the resulting two-dimensional code will be saved under the original project file path, file with .py. Items that can be directly View column, select the right location to open the file.
Generate two-dimensional code effect:
(2) two-dimensional code may also be produced containing their individual colors, such as adding a background pattern. Under Picture file corresponding to the background image in the project, namely .py and put together. Source as follows:
Generate two-dimensional code effect: