PS:我已经忘记了n遍了 class DBHelper { //连接数据库 public static string connstring = @"Data Source=DESKTOP-8HPQ7CU;Initial Catalog=ChaoShiGuanLi;Integrated Security=True"; public static SqlConnection conn = null; //初始化数据库 public static void lnitconnection() {