首页 > 数据库 >【Python毕业设计】基于Python+Flask+MySQL的学生信息管理系统(附完整源码)

【Python毕业设计】基于Python+Flask+MySQL的学生信息管理系统(附完整源码)

时间:2023-04-18 20:14:39浏览次数:54  
标签:form get Python request app db 源码 毕业设计 data

1、项目说明
基于python+Flask+mysql的学生信息管理系统项目实战

项目需要安装pycharm专业版,mysql数据库以及项目所需的所有模块
创建数据库名称db_online_notes,然后执行sql文件生成数据表和数据

项目需要安装 flask,pymysql以及其他的一些模块
安装命令如下:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 模块名称
如安装flask:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple flask

2、项目主要技术
python编程技术
flask框架技术
mysql数据库技术
html编程
css编程
js编程

3、项目结构
static 项目静态文件存储文件夹(images,css,js)
templates 项目模板文件文件夹(html)
log.txt 错误日志存放文件
forms.py 表单验证对象
mysql_util.py 数据库链接操作
manage.py 项目功能业务逻辑实现(项目入口)

4、项目主要功能
用户登录注册
文章信息的增删改查

5、部分源码

from flask import Flask, render_template, request, redirect, session, jsonify, url_for
from flask_sqlalchemy import SQLAlchemy
from werkzeug.utils import secure_filename
import os,shutil
import random
import json
import pymysql
import logging
import math
from operator import or_

from exts.QueryPaginate import QueryPaginate

app = Flask(__name__,static_folder='')
app.config['DEBUG']=True
#配置session key
app.config['SECRET_KEY'] = '2cf0fa7e-48d9-11e6-93fb-c03fd53413ef'

#SQLAlchemy相关配置
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:root@localhost:3306/student'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['SQLALCHEMY_ECHO'] = False

# 创建组件对象
db = SQLAlchemy(app)

#**********配置初始系统变量**********
data = {}
data['SYSNAME']='毕业设计 - 学生信息管理系统'
data['DEVURL']='http://www.wwww.com/'
data['DEVNAME']='上海交大'

#**********数据库配置**********

#学生表
class TStudent(db.Model):
    __tablename__ = 't_student'
    id = db.Column(db.Integer, primary_key=True)
    student_no = db.Column(db.String(20))
    student_name = db.Column(db.String(100))
    department_no = db.Column(db.String(20))

#课程表
class TCourse(db.Model):
    __tablename__ = 't_course'
    id = db.Column(db.Integer, primary_key=True)
    course_no = db.Column(db.String(20))
    course_name = db.Column(db.String(100))

#成绩表
class TGrade(db.Model):
    __tablename__ = 't_grade'
    id = db.Column(db.Integer, primary_key=True)
    student_no = db.Column(db.String(20))
    course_no = db.Column(db.String(20))
    grade = db.Column(db.String(10))

#用户表
class TUser(db.Model):
    __tablename__ = 't_user'
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String(20))
    password = db.Column(db.String(20))
    realname = db.Column(db.String(20))

#学院表
class TDepartment(db.Model):
    __tablename__ = 't_department'
    id = db.Column(db.Integer, primary_key=True)
    department_no = db.Column(db.String(20))
    department_name = db.Column(db.String(20))

#**********路由部分**********

#首页
@app.route('/')
@app.route('/index')
def index():
    
    if(checkSignIn()==False):
        return redirect('/signin')

    studentCount = db.session.query(TStudent).count()
    courseCount = db.session.query(TCourse).count()
    userCount = db.session.query(TUser).count()
    gradeCount = db.session.query(TGrade).count()

    data['studentCount']= studentCount
    data['courseCount']= courseCount
    data['userCount']= studentCount
    data['gradeCount']= gradeCount

    studentData = db.session.query(TStudent,TDepartment).outerjoin(TDepartment, TStudent.department_no==TDepartment.department_no).order_by(TStudent.id.desc()).limit(10).all()
    print(studentData)
    data['studentData']=studentData

    userData = db.session.query(TUser).order_by(TUser.id.desc()).limit(10).all()
    data['userData']=userData
   

    return render_template('index.html', **data)
'''
#首页
@app.route('/index')
def index2():

    if(checkSignIn()==False):
        return redirect('/signin')

    return render_template('index.html', **data)
'''
#用户登录模块
@app.route('/signin',methods=['GET','POST'])
def signin():

    return render_template('sign-in.html',form=data)

#用户退出模块
@app.route('/signout',methods=['GET','POST'])
def signout():
    session.clear()
    #return redirect('/signin')
    return redirect(url_for('signin'))

#用户登录验证
@app.route('/dosignin',methods=['GET','POST'])
def dosignin():

    userName = request.values.get('userName')
    userPass = request.values.get('userPass')

    logging.info(request.remote_addr)#记录日志
    print(request.headers)#头文件
    print(request.remote_addr)#远程IP地址

    user = db.session.query(TUser).filter(TUser.username == userName,
    TUser.password == userPass
    ).first()

    if(user is not None):
        session['userName']=userName
        print(session)        
        return redirect('/')
    else:
        data['errorMessage']='用户名或密码不正确!'
        return render_template('signin.html',form=data)

#用户注册模块
@app.route('/signup',methods=['GET','POST'])
def signup():
    
    return render_template('sign-up.html',form=data)


#学生信息部分开始************************************

#查看列表带分页
@app.route('/students/',methods=['GET','POST'])
def students():

    studentNo = request.form.get('studentNo') if request.form.get('studentNo') is not None else ''
    studentName = request.form.get('studentName') if request.form.get('studentName') is not None else ''
    data['studentNo']=studentNo
    data['studentName']=studentName
    
    page = int(request.form.get('search_page')) if request.form.get('search_page') is not None and request.form.get('search_page') != '0' else 1

    query = db.session.query(TStudent).filter(or_(TStudent.student_no == studentNo, studentNo == ''),
    or_(TStudent.student_name.like('%{0}%'.format(studentName)),studentName == '')
    )
    queryPaginate = QueryPaginate(query,10,page)

    data['currdata']=queryPaginate.items
    data['pagelist']=queryPaginate.iter_pages()
    data['pages']=queryPaginate.pages
    data['page']=queryPaginate.page
    data['per_page']=queryPaginate.per_page
    data['prev_num']=queryPaginate.prev_num
    data['next_num']=queryPaginate.next_num
    
    return render_template('students.html',**data)

#查看单个信息
@app.route('/student/<int:studentid>',methods=['GET','POST'])
def student(studentid):
    data['studentid']=studentid

    currdata = db.session.query(TStudent).filter(TStudent.id==studentid).first()
    data['currdata'] = currdata
    return render_template('student.html',**data)

#编辑单个信息
@app.route('/student/edit/<int:studentid>',methods=['GET'])
def student_edit(studentid):

    currdata = db.session.query(TStudent).filter(TStudent.id==studentid).first()
    print(currdata)
    data['currdata'] = currdata
    return render_template('student_edit.html',**data)

#编辑保存单个信息
@app.route('/student/doedit/',methods=['POST'])
def student_doedit():
    studentid = request.form.get('studentid') 
    studentNo = request.form.get('studentNo')
    studentName = request.form.get('studentName')

    update_dict = {}
    if(studentNo is not None):
        update_dict['student_no']=studentNo
    if(studentName is not None):
        update_dict['student_name']=studentName    

    db.session.query(TStudent).filter_by(id=studentid).update(update_dict)
    db.session.commit()
    print(data)
    return redirect(url_for('students'))

#删除单个信息
@app.route('/student/del/<int:studentid>',methods=['GET'])
def student_del(studentid):
    db.session.query(TStudent).filter_by(id=studentid).delete()
    db.session.commit()    

    return redirect(url_for('students'))

#删除单个信息
@app.route('/student/dodel/',methods=['POST'])
def student_dodel(studentid):
    
    db.session.query(TStudent).filter_by(id=studentid).delete()
    db.session.commit()
    return redirect(url_for('students'))

#保存单个信息
@app.route('/student/add',methods=['GET'])
def student_add():

    return render_template('student_add.html',form=data)

#保存单个信息
@app.route('/student/doAdd',methods=['POST'])
def student_doadd():
    studentNo = request.form.get('studentNo')
    studentName = request.form.get('studentName')
    print(request.form)
    student = TStudent(student_no=studentNo,student_name=studentName)
    db.session.add(student)
    db.session.commit()

    return redirect(url_for('students'))

#学生信息部分结束************************************



#课程信息部分开始************************************

#查看列表带分页
@app.route('/courses/',methods=['GET','POST'])
def courses():

    courseNo = request.form.get('courseNo') if request.form.get('courseNo') is not None else ''
    courseName = request.form.get('courseName') if request.form.get('courseName') is not None else ''
    data['courseNo']=courseNo
    data['courseName']=courseName
    
    page = int(request.form.get('search_page')) if request.form.get('search_page') is not None and request.form.get('search_page') != '0' else 1

    query = db.session.query(TCourse).filter(or_(TCourse.course_no == courseNo, courseNo == ''),
    or_(TCourse.course_name.like('%{0}%'.format(courseName)),courseName == '')
    )
    queryPaginate = QueryPaginate(query,10,page)

    data['currdata']=queryPaginate.items
    data['pagelist']=queryPaginate.iter_pages()
    data['pages']=queryPaginate.pages
    data['page']=queryPaginate.page
    data['per_page']=queryPaginate.per_page
    data['prev_num']=queryPaginate.prev_num
    data['next_num']=queryPaginate.next_num
    
    return render_template('courses.html',**data)

#查看单个信息
@app.route('/course/<int:courseid>',methods=['GET','POST'])
def course(courseid):
    data['courseid']=courseid

    currdata = db.session.query(TCourse).filter(TCourse.id==courseid).first()
    data['currdata'] = currdata
    return render_template('course.html',**data)

#编辑单个信息
@app.route('/course/edit/<int:courseid>',methods=['GET'])
def course_edit(courseid):

    currdata = db.session.query(TCourse).filter(TCourse.id==courseid).first()
    print(currdata)
    data['currdata'] = currdata
    return render_template('course_edit.html',**data)

#编辑保存单个信息
@app.route('/course/doedit/',methods=['POST'])
def course_doedit():
    courseid = request.form.get('courseid') 
    courseNo = request.form.get('courseNo')
    courseName = request.form.get('courseName')

    update_dict = {}
    if(courseNo is not None):
        update_dict['course_no']=courseNo
    if(courseName is not None):
        update_dict['course_name']=courseName    

    db.session.query(TCourse).filter_by(id=courseid).update(update_dict)
    db.session.commit()
    print(data)
    return redirect(url_for('courses'))

#删除单个信息
@app.route('/course/del/<int:courseid>',methods=['GET'])
def course_del(courseid):
    db.session.query(TCourse).filter_by(id=courseid).delete()
    db.session.commit()    

    return redirect(url_for('courses'))

#删除单个信息
@app.route('/course/dodel/',methods=['POST'])
def course_dodel(courseid):
    
    db.session.query(TCourse).filter_by(id=courseid).delete()
    db.session.commit()
    return redirect(url_for('courses'))

#保存单个信息
@app.route('/course/add',methods=['GET'])
def course_add():

    return render_template('course_add.html',form=data)

#保存单个信息
@app.route('/course/doAdd',methods=['POST'])
def course_doadd():
    courseNo = request.form.get('courseNo')
    courseName = request.form.get('courseName')
    print(request.form)
    course = TCourse(course_no=courseNo,course_name=courseName)
    db.session.add(course)
    db.session.commit()

    return redirect(url_for('courses'))

#课程信息部分结束************************************



#成绩信息部分开始************************************
@app.route('/grades/',methods=['GET','POST'])
def grades():
    studentNo = request.form.get('studentNo') if request.form.get('studentNo') is not None else ''
    studentName = request.form.get('studentName') if request.form.get('studentName') is not None else ''
    courseNo = request.form.get('courseNo') if request.form.get('courseNo') is not None else ''
    courseName = request.form.get('courseName') if request.form.get('courseName') is not None else ''

    data['studentNo']=studentNo
    data['studentName']=studentName
    data['courseNo']=courseNo
    data['courseName']=courseName    
    
    page = int(request.form.get('search_page')) if request.form.get('search_page') is not None and request.form.get('search_page') != '0' else 1

    query = db.session.query(TGrade,TStudent,TCourse).outerjoin(TStudent, TStudent.student_no==TGrade.student_no).outerjoin(TCourse,TCourse.course_no==TGrade.course_no).filter(or_(TCourse.course_no == courseNo, courseNo == ''),
    or_(TCourse.course_name.like('%{0}%'.format(courseName)),courseName == ''),
    or_(TStudent.student_no == studentNo, studentNo == ''),
    or_(TStudent.student_name.like('%{0}%'.format(studentName)),studentName == '')                                                                                                                                                               
    )
    #print(query)
    queryPaginate = QueryPaginate(query,10,page)
    #print(queryPaginate.items)
    data['currdata']=queryPaginate.items
    data['pagelist']=queryPaginate.iter_pages()
    data['pages']=queryPaginate.pages
    data['page']=queryPaginate.page
    data['per_page']=queryPaginate.per_page
    data['prev_num']=queryPaginate.prev_num
    data['next_num']=queryPaginate.next_num
    
    return render_template('grades.html',**data)

#保存单个信息
@app.route('/grade/add',methods=['GET'])
def grade_add():

    studentdata = db.session.query(TStudent).all()
    data['studentdata']=studentdata
    
    coursedata = db.session.query(TCourse).all()
    data['coursedata']=coursedata

    return render_template('grade_add.html',**data)

#保存单个信息
@app.route('/grade/doAdd',methods=['POST'])
def grade_doadd():
    courseNo = request.form.get('courseNo')
    studentNo = request.form.get('studentNo')
    grade = request.form.get('grade')

    grade = TGrade(course_no=courseNo,student_no=studentNo,grade=grade)
    db.session.add(grade)
    db.session.commit()

    return redirect(url_for('grades'))


#删除单个信息
@app.route('/grade/del/<int:gradeid>',methods=['GET'])
def grade_del(gradeid):
    db.session.query(TGrade).filter_by(id=gradeid).delete()
    db.session.commit()    

    return redirect(url_for('grades'))

#成绩信息部分结束************************************





#用户信息部分开始************************************

#查看列表
@app.route('/users',methods=['GET','POST'])
def users():

    userName = request.form.get('userName') if request.form.get('userName') is not None else ''
    realName = request.form.get('realName') if request.form.get('realName') is not None else ''

    data['userName']=userName
    data['realName']=realName    
    
    page = int(request.form.get('search_page')) if request.form.get('search_page') is not None and request.form.get('search_page') != '0' else 1

    query = db.session.query(TUser).filter(or_(TUser.username == userName, userName == ''),
    or_(TUser.realname.like('%{0}%'.format(realName)),realName == '')                                                                                                                                                           
    )
    print(query)
    queryPaginate = QueryPaginate(query,10,page)
    #print(queryPaginate.items)
    data['currdata']=queryPaginate.items
    data['pagelist']=queryPaginate.iter_pages()
    data['pages']=queryPaginate.pages
    data['page']=queryPaginate.page
    data['per_page']=queryPaginate.per_page
    data['prev_num']=queryPaginate.prev_num
    data['next_num']=queryPaginate.next_num
    
    return render_template('users.html',**data)

#查看单个信息
@app.route('/user/<int:userid>',methods=['GET','POST'])
def user(userid):
    data['userid']=userid
    print(data)
    return render_template('user.html',form=data)

#保存单个信息
@app.route('/user/add',methods=['GET'])
def user_add():

    return render_template('user_add.html',**data)

#保存单个信息
@app.route('/user/doAdd',methods=['POST'])
def user_doadd():
    username = request.form.get('username')
    password = request.form.get('password')
    realname = request.form.get('realname')

    user = TUser(username=username,password=password,realname=realname)
    db.session.add(user)
    db.session.commit()

    return redirect(url_for('users'))

#编辑单个信息
@app.route('/user/edit/<int:userid>',methods=['GET'])
def user_edit(userid):

    currdata = db.session.query(TUser).filter(TUser.id==userid).first()
    print(currdata)
    data['currdata'] = currdata
    return render_template('user_edit.html',**data)

#编辑保存单个信息
@app.route('/user/doedit/',methods=['POST'])
def user_doedit():
    userid = request.form.get('userid') 
    username = request.form.get('username')
    password = request.form.get('password')
    realname = request.form.get('realname')

    update_dict = {}
    if(username is not None):
        update_dict['username']=username
    if(password is not None):
        update_dict['password']=password
    if(realname is not None):
        update_dict['realname']=realname            

    db.session.query(TUser).filter_by(id=userid).update(update_dict)
    db.session.commit()
    print(data)
    return redirect(url_for('users'))

#删除单个信息
@app.route('/user/del/<int:userid>',methods=['GET'])
def user_del(userid):
    db.session.query(TUser).filter_by(id=userid).delete()
    db.session.commit()    

    return redirect(url_for('users'))

#用户信息部分结束************************************

#用户设置部分结束************************************

#编辑单个信息
@app.route('/user/set/<username>',methods=['GET'])
def user_set(username):

    currdata = db.session.query(TUser).filter(TUser.username==username).first()
    print(currdata)
    data['currdata'] = currdata
    return render_template('user_set.html',**data)

#编辑保存单个信息
@app.route('/user/doset/',methods=['POST'])
def user_doset():
    userid = request.form.get('userid') 
    username = request.form.get('username')
    password = request.form.get('password')
    realname = request.form.get('realname')

    update_dict = {}
    if(username is not None):
        update_dict['username']=username
    if(password is not None):
        update_dict['password']=password
    if(realname is not None):
        update_dict['realname']=realname            

    db.session.query(TUser).filter_by(id=userid).update(update_dict)
    db.session.commit()
    print(data)
    return redirect(url_for('users'))
#用户设置部分结束************************************






@app.route('/faq',methods=['GET','POST'])
def faq():
    
    return render_template('faq.html',**data)

@app.route('/help',methods=['GET','POST'])
def help():
    
    return render_template('help.html',**data)

@app.route('/calendar',methods=['GET','POST'])
def calendar():
    
    return render_template('calendar.html',form=data)

@app.route('/media',methods=['GET','POST'])
def media():
    
    return render_template('media.html',**data)

@app.route('/theory',methods=['GET','POST'])
def theory():
    
    return render_template('theory.html',**data)

@app.route('/privacy-policy',methods=['GET','POST'])
def privacypolicy():
    
    return render_template('privacy-policy.html',**data)

@app.route('/terms-and-conditions',methods=['GET','POST'])
def termsandconditions():
    
    return render_template('terms-and-conditions.html',**data)

#系统级报警路由
@app.errorhandler(403)
def error403():
    
    return render_template('403.html',form=data)

@app.errorhandler(404)
def error404(error):
    
    return render_template('404.html',form=data)

@app.errorhandler(500)
def error500():
    
    return render_template('500.html',form=data)

@app.errorhandler(503)
def error503():
    
    return render_template('503.html',form=data)


#**********测试用路由**********

@app.route('/jsontest')
def jsonTest():
    
    jsonStr = '{"name":"张三","age":"33"}'
    jsonData = json.loads(jsonStr)
    print(jsonData['name'])
    
    data={"name":"张三","age":"33"}
    print (json.dumps(data,ensure_ascii=False))
    #return jsonify(data)
    return jsonify(name="张三",age=34)


@app.route('/mysqltest')
def mysqlTest():
    cursor = db.cursor()
    try:
        mySql = "select * from kelly limit 10"
        cursor.execute(mySql)
        data = cursor.fetchall()
    except Exception as e:
        print("Error: ",e)
    return jsonify(data)



#**********方法部分**********
#检测登录状态
def checkSignIn():
    #if(session.get('userName') is None or session.get('userName')==''):
    if('userName' not in session):
        return False
    else:
        return True


#**********通用方法部分**********


if __name__ == "__main__":
    app.run(host='0.0.0.0',debug=False,port=8088)
    #app.run(host='127.0.0.1',debug=False,port=8082)

6、运行截图

 

 

 

 

 

 

 

7、项目总结

本项目是一个非常适合练手的项目,对我们的python编程和对flask框架的了解和提升都有很大的帮助,推荐大家学习研究这个项目,搞懂其中的原理流程以及知识点非常关键。

 

资料获取地址:https://item.taobao.com/item.htm?spm=a21dvs.23580594.0.0.4fee3d0dmeAXHu&ft=t&id=713204492149

B站视频讲解地址:

 

注:其他问题请参看视频讲解,都有介绍,一定要认真看完哦!

代码编写、视频录制不易,感谢您的支持,祝您学习愉快!

 

 

标签:form,get,Python,request,app,db,源码,毕业设计,data
From: https://www.cnblogs.com/kakasea/p/17330401.html

相关文章

  • 记一次python写爬虫爬取学校官网的文章
    有一位老师想要把官网上有关数字化的文章全部下载下来,于是找到我,使用python来达到目的首先先查看了文章的网址获取了网页的源代码发现一个问题,源代码里面没有url,这里的话就需要用到抓包了,因为很明显这里显示的内容是进行了一个请求,所以只能通过抓包先拿到请求的url从而获得每一......
  • vue2源码-八、依赖收集的过程
    依赖收集的过程前言使用真实节点替换原始节点,主要涉及以下步骤:1.新老节点的更新方案。2.虚拟节点与真实节点映射。3.实现新老节点的替换。依赖收集已经完成了Vue的两大核心部分:响应式数据和数据渲染,即完成了整个Vue的初始化流程:当newVue()时,执行_init初始化,通过moun......
  • 查看python脚本所依赖三方包及其版本
    1.使用pip命令安装,利用豆瓣镜像,命令如下:pipinstallpipreqs-ihttp://pypi.douban.com/simple--trusted-hostpypi.douban.com2.在终端导入程序exportPATH=$PATH:~/.local/bin3.在项目根目录下执行命令pipreqs./work#报错就执行下面这条pipreqs./work--encoding=utf......
  • python csv.reader 读取文件或list
    读取文件withopen(file_path,encoding='UTF-8')asfile:lines=csv.reader(file,delimiter="#",quotechar='"')forrowinlines:print(row)读取list注意:如果是字符串,一定要转成list.例如 rows=csv.reader(["John#......
  • OpenHarmony源码解析之系统服务管理子系统
    1预备知识Linux中主要的IPC机制有:管道(pipe)、信号(signal)、信号量(semophore)、消息队列(Message)、共享内存(ShareMemory)、套接字(Socket)等。OpenHarmony基于binder驱动封装了一套ipc机制(foundation\communication\ipc)用于实现设备内的跨进程通信。Binder机制通常采用客户端-服务器(Cli......
  • Python小练习:解决strftime()中国时区乱码问题
    Python小练习:解决strftime()中国时区乱码问题作者:凯鲁嘎吉-博客园 http://www.cnblogs.com/kailugaji/1.mytest.py1#-*-coding:utf-8-*-2#Author:凯鲁嘎吉CoralGajic3#https://www.cnblogs.com/kailugaji/4#Python小练习:解决strftime()中国时区乱码问......
  • PYTHON银行机器学习:回归、随机森林、KNN近邻、决策树、高斯朴素贝叶斯、支持向量机SV
    全文下载链接:http://tecdat.cn/?p=26219最近我们被客户要求撰写关于银行机器学习的研究报告,包括一些图形和统计输出。该数据与银行机构的直接营销活动相关,营销活动基于电话。通常,需要与同一客户的多个联系人联系,以便访问产品(银行定期存款)是否会(“是”)或不会(“否”)订阅银行数据集我......
  • Python对商店数据进行lstm和xgboost销售量时间序列建模预测分析|附代码数据
    全文下载链接:http://tecdat.cn/?p=17748最近我们被客户要求撰写关于销售量时间序列建模预测的研究报告,包括一些图形和统计输出。在本文中,在数据科学学习之旅中,我经常处理日常工作中的时间序列数据集,并据此做出预测。LSTM神经网络架构和原理及其在Python中的预测应用我将通过以下......
  • Python ArcPy批量计算多时相遥感影像的各项元平均值
      本文介绍基于Python中ArcPy模块,对大量长时间序列栅格遥感影像文件的每一个像元进行多时序平均值的求取。  在遥感应用中,我们经常需要对某一景遥感影像中的全部像元的像素值进行平均值求取——这一操作很好实现,基于ArcMap软件或者简单的Python代码就可以实现;但有时候,我们会......
  • pandas读取Excel核心源码剖析,面向过程仿openpyxl源码实现Excel数据加载
    今天我们将研究pandas如何使用openpyxl引擎读取xlsx格式的Excel的数据,并考虑以面向过程的形式简单的自己实现一下。截止目前本人所使用的pandas和openpyxl版本为:pandas:1.5.2openpyxl:3.0.10今天所有的测试全部基于以下文件:pandas的read_excel核心代码这里我使用pycharm工具对以下代......