摘要: 1.添加日志 import logging logging.debug('This is debug message') logging.info('This is info message') logging.warning('This is warning message') import lo 阅读全文
posted @ 2020-08-18 17:51 程程111 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 引自:https://blog.csdn.net/u011519550/article/details/89855122 设置路径:file——setting——tools——terminal——application settings——shell path 改为:"D:\Git\bin\sh.e 阅读全文
posted @ 2020-08-18 11:10 程程111 阅读(608) 评论(0) 推荐(0) 编辑
摘要: import pymysql.cursors # 连接数据库 connect = pymysql.Connect( host='localhost', port=3306, user='root', passwd='magicimage', db='student', charset='utf8' 阅读全文
posted @ 2020-08-18 10:12 程程111 阅读(173) 评论(0) 推荐(0) 编辑