- 博客(9)
- 问答 (2)
- 收藏
- 关注
原创 Python学习:演练分组函数和聚合函数的组合使用
代码如下: create database jing_dong charset=utf8; use jing_dong; create table goods( id int unsigned primary key auto_increment not null, name varchar(150) not null, cate_name varchar(40) not null, brand_name varchar(40) not null, pric
2021-11-15 19:22:11
686
原创 mysql学习:复杂查询
首先用以下语句创建表或加入数据: create table students(id int(4) ,name varchar(20),birth date,primary key(id)); insert into students values(5,'e','1999-07-26'); create table borrows(wid int(4) ,bid int(4)); insert into borrows values(1,1); create table books(id int(4) a
2021-10-27 20:09:55
197
原创 Python学习:web服务器
1.返回固定页面数据: import socket if __name__ == '__main__': # 创建TCP服务端套接字 tcp_server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) tcp_server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, True) tcp_server_socket.bind((""
2021-10-26 19:52:43
211
原创 pycharm报错The “freeze_support()“ line can be omitted if the program is not going to be frozen
在写python代码时,如果涉及进程线程,也就是使用multiprocessing进程包,或者使用threading模块包时,注意加入如下代码: if __name__ == '__main__': # 这句代码,把真正要执行的代码放在下面 sing_process = multiprocessing.Process(target=sing) # 子进程 sing_process.start() # 启动子进程 这是由于Windows系统中的无限拷贝执行问题,加入这句代码就可以
2021-10-21 16:15:38
879
原创 Python学习:面向对象版学员管理系统
面向对象版学员管理系统 项目根目录为:StudentManagerSystem student.py代码为: # 学员类 class Student(object): def __init__(self, name, gender, tel): self.name = name self.gender = gender self.tel = tel def __str__(self): return f'{self.name}
2021-10-14 16:15:16
709
原创 Python学习:学员管理系统
代码如下: def info_print(): print("请选择功能----------------") print("1,添加成员") print("2,删除成员") print("3,修改成员") print("4,查询成员") print("5,显示所有成员") print("6,退出系统") print("-" * 24) info = [] def add_info(): # 添加 """添加学员信息"""
2021-09-28 18:27:29
180
原创 mysql执行脚本文件时总是显示failed to open file
mysql执行脚本文件时总是显示failed to open file 这个问题把我折磨得心力交瘁,我试过了包括到不限于以下的语句: source D:/mysql8/test.sql source D:/mysql8/test.txt source test.sql 均显示faied to open file,于是我发了个问答,多谢"温柔的橙叙猿"这位大佬的解答,得到了以下两种解决方法: 下载一个navicat for mysql,连接数据库,在里面运行SQL文件 找文件时,记得将这里改成全部文件,不
2021-09-23 23:54:42
5164
空空如也
数据库分组查询,希望有人解答
2021-11-13
mysql执行脚本文件的时候总是报错找不到文件
2021-09-22
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
1