摘要:
1. base64转图片 def select_all_picture(): db = connSqlite() cursor = db.cursor() title_sql = "select * from news_picture" try: cursor.execute(title_sql) 阅读全文
posted @ 2021-12-03 13:55
升级打怪
阅读(2384)
评论(0)
推荐(0)
摘要:
1. 8.0之前修改密码使用方法如下所示 mysql> use mysql; mysql> update user set password=password('新密码') where user='用户名'; 或者 mysql> update mysql.user set authenticatio 阅读全文
posted @ 2021-12-03 13:46
升级打怪
阅读(485)
评论(0)
推荐(0)
摘要:
yearr=2021 fa = open(r"{}.html".format(yearr), "r", encoding="utf-8") # 读取文件 fcontent = fa.read() # 把文件内容转化为字符串 print(str) origin_str = '<div id="tree 阅读全文
posted @ 2021-12-03 13:39
升级打怪
阅读(32)
评论(0)
推荐(0)
摘要:
1.连接 def connpsycopg(): conn = psycopg2.connect(database="postgres", user="postgres", password="123", host="127.0.0.1", port="5433") return conn 2. 使用 阅读全文
posted @ 2021-12-03 13:35
升级打怪
阅读(180)
评论(0)
推荐(0)
摘要:
import xlrd import trans from xlutils.copy import copy def readExcel(): rea = xlrd.open_workbook('union_group.xls', formatting_info=True) print(rea) s 阅读全文
posted @ 2021-12-03 12:20
升级打怪
阅读(35)
评论(0)
推荐(0)