不为别的,只为做一个连自己都羡慕的人

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页
摘要: 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)
摘要: 阅读全文
posted @ 2021-12-01 11:10 升级打怪 阅读(42) 评论(0) 推荐(0)
摘要: 依赖包如下所示: pip install python-docx==0.8.10pip install lxml==4.6.3 代码如下所示: import datetime import os import time import uuid import docx import json impo 阅读全文
posted @ 2021-11-03 15:46 升级打怪 阅读(563) 评论(0) 推荐(0)
摘要: 这是windows下面的截图方法,实现方法都用了selenium 依赖库如下所示: pip install selenium==2.48.0 方法一: 代码如下所示: import time from selenium import webdriver def jieTu(reqUrl): br = 阅读全文
posted @ 2021-11-03 15:22 升级打怪 阅读(1712) 评论(0) 推荐(0)
摘要: import random list = [20, 16, 10, 5]; random.shuffle(list) print "Reshuffled list : ", list; random.shuffle(list) print "Reshuffled list : ", list; 运行 阅读全文
posted @ 2021-10-26 17:48 升级打怪 阅读(659) 评论(0) 推荐(0)
摘要: from fastapi.staticfiles import StaticFiles app = FastAPI() # 挂载 app.mount("/static", StaticFiles(directory="static"), name="static") 安装 pip install a 阅读全文
posted @ 2021-10-26 17:23 升级打怪 阅读(202) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页