![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
一遇风云
这个作者很懒,什么都没留下…
展开
-
python3.6+flask+mysql的一个坑
很多用户在使用python3.*版本的环境中,使用flask连接mysql的时候,会存在一个问题:在python 2.*版本是正常的,但是在python3.*的版本中,会连接失败。原因:python 3.*中不支持mysql-python这个库,需要安装pymysql (https://github.com/PyMySQL)然后在使用的时候:SQLALCHEMY_DATABAS原创 2018-01-22 12:53:32 · 1159 阅读 · 2 评论 -
requests的代码在python2.7中的一个小坑
在python2.7中安装requests后,运行会出错,super() takes at least 1 argument (0 given)主要出问题的地方在session.py中class Session: def __init__ (): ...... super().__init__()super().__ini...原创 2019-09-09 15:10:04 · 264 阅读 · 0 评论