摘要: Kruskal 思想:贪心+并查集 #include <bits/stdc++.h> using namespace std; const int N=5e3+10; const int M=2e5+10; typedef long long ll; int n,m; struct edge { i 阅读全文
posted @ 2025-07-17 17:11 屈臣 阅读(5) 评论(0) 推荐(0)
摘要: 1.pymysql创建数据库连接 基础版 from pymysql import Connection # 创建数据库连接 con = Connection( host='localhost',# 主机名 port=3306, # 端口 user='root', # 账户 password='123 阅读全文
posted @ 2025-07-17 09:22 屈臣 阅读(19) 评论(0) 推荐(0)