摘要: 1.重写service方法 2.连接数据库五个步骤 1.注册驱动 2.建立连接 DriverMannager.getConnection(url, user, password) 3.sql语句 4.预编译 5.获取结果集 6.结果集遍历 3.mysql-connector-java-8.0.27. 阅读全文
posted @ 2022-07-09 01:05 SweetButPsycho 阅读(57) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-12-11 15:52 SweetButPsycho 阅读(41) 评论(0) 推荐(0)
摘要: class CPU: passclass Disk: passclass Computer: def __init__(self, cpu, disk): self.cpu = cpu self.disk = diskcpu1 = CPU()cpu2 = cpu1# 变量的赋值print(cpu1, 阅读全文
posted @ 2021-12-09 12:33 SweetButPsycho 阅读(43) 评论(0) 推荐(0)