blog.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:aweasome_learning 作者: Knight-ZXW 项目源码 文件源码
def maybe_create_tables(self):
        try:
            self.db.get("SELECT COUNT(*) from entries;")
        except MySQLdb.ProgrammingError:
            subprocess.check_call(['mysql',
                                   '--host=' + options.mysql_host,
                                   '--database=' + options.mysql_database,
                                   '--user=' + options.mysql_user,
                                   '--password=' + options.mysql_password],
                                  stdin=open('schema.sql'))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号