摘要: @contextlib.contextmanager def getdb(): conn = pymysql.connect("url://server", "username", "password", "dbname", charset='utf8') cursor = conn.cursor( 阅读全文
posted @ 2021-02-04 13:48 爱知菜 阅读(21) 评论(0) 推荐(0) 编辑