模仿微信和115网盘的手机扫web端二维码登录功能。基于tornado。
git clone https://github.com/inuyasha2012/tornado-qrcode-login-example.git
cd tornado-qrcode-login-example
cd example
pip install requirements.txt
python main.py
命令行输入ifconfig或ipconfig,找到你的IP地址,192.168.xx.xx
pc浏览器打开http://192.168.xx.xx/
手机浏览器扫码
结束,app原理与上述类似,不同之处是server端是restful风格