摘要: python 操作mysql 的网站:https://www.cnblogs.com/pycode/p/mysql-orm.html 1 修改MySQL的登录设置: # vi /etc/my.cnf 在[mysqld]的段中加上一句:skip-grant-tables 例如: [mysqld] da 阅读全文
posted @ 2017-03-14 11:31 会开车的好厨师 阅读(147) 评论(0) 推荐(0)
摘要: python 中会出现钻石继承问题,如下所示 class A(): def __init__(self): print("进入A…") print("离开A…") class B(A): def __init__(self): print("进入B…") A.__init__(self) print 阅读全文
posted @ 2016-10-21 11:07 会开车的好厨师 阅读(337) 评论(0) 推荐(0)