上一页 1 ··· 4 5 6 7 8
摘要: 1. 连接数据库和创建游标 import sqlite3 conn = sqlite3.connect("test.db") cur = conn.cursor() 2. 建表 sql = "CREATE TABLE test_table(id INTEGER PRIMARY KEY,name TE 阅读全文
posted @ 2023-03-12 11:49 wstong 阅读(94) 评论(0) 推荐(0)
摘要: 1. 需要先安装两个模块 pip3 install fitz pip3 install PyMuPDF 2. 脚本如下 import fitz import os from functools import cmp_to_key # 过滤掉当前目录除jpg以外的文件 def file_filter( 阅读全文
posted @ 2023-03-11 20:03 wstong 阅读(305) 评论(0) 推荐(0)
摘要: 1. json转xlsx <html lang="zh"> <head> <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.3/jquery.min.js"></script> <script src="https://cdn.boo 阅读全文
posted @ 2023-03-11 11:53 wstong 阅读(3250) 评论(0) 推荐(0)
摘要: 1. popup.html <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <meta name="viewport" content="width=de 阅读全文
posted @ 2023-03-10 23:04 wstong 阅读(94) 评论(0) 推荐(0)
摘要: 1. 安装pyodbc pip3 install pyodbc -i https://pypi.tuna.tsinghua.edu.cn/simple 2. 安装accessdatabaseengine https://www.microsoft.com/zh-cn/download/details 阅读全文
posted @ 2023-03-09 21:45 wstong 阅读(2116) 评论(0) 推荐(0)
摘要: ### 使用端口映射和nginx代理实现外网通过公网ip访问内网网站 #### 1. 拥有一个公网ip 没有公网ip后面可以不用看了 #### 2. 端口映射 进入路由器后台管理页面,配置端口映射,输入外部端口、内网ip地址、内部端口 #### 3. nginx反向代理 1. 在官网下载nginx 阅读全文
posted @ 2023-03-09 20:30 wstong 阅读(428) 评论(0) 推荐(0)
摘要: var import_css = document.createElement("link"); import_css.setAttribute("rel","stylesheet"); import_css.setAttribute("href", "https://cdn.bootcdn.net 阅读全文
posted @ 2023-03-08 23:30 wstong 阅读(65) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8