毕设——Python实现带GUI和连接数据库的图书管理系统!

tkinter+sqlite3学生信息管理系统 学生信息管理系统1 数据库1.1 用户信息(pickle)1.2 学生信息数据库创建(sqlite3)2 界面设计2.1 登录界面2.2 注册界面2.3 学生信息管理界面3 数据处理3.1 查找3.2 增加3.3 删除3.4 修改4 心得 刚写完趁热打铁写个博客记录一下,初学很多东西不懂,也可能有错误的地方,仅是做个记录。 1 数据库 1.1 用户信息(pickle) pickle的使用 用户信息存储用到了pickle模板,在登录时输入用户名和密码(均不能为空),从本地字典获取用户信息,判断用户名和密码是 阅读详情

前言

大三上学期的程序设计实训大作业,挑了其中一个我认为最简单的的《图书管理系统》来写。用python写是因为py有自带的GUI,即tkinter模块,对初次接触GUI的新手会比较友好。编译器我用的是Pycharm,你需要检查你的编译器是否带了tkinter模块和pymysql模块,没有的话需要下载安装,具体方法可以百度,很简单。界面很丑,凑合看哦!如果你没有了解过tkinter,建议先去知乎,csdn上面搜索自学一下入门教程,这样就比较容易理解我的东西啦!

此文转载文,著作权归作者所有,如有侵权联系小编删除! PS:如有需要Python学习资料的小伙伴可以加点击下方链接自行获取

python免费学习资料以及群交流解答点击即可加入

 

二、建立数据库library

 

如图所示,软件是Navicat,给library建表。

2.1 book表

存储图书的相关信息,包括书名,作者,类型,数量。主码是name和author。

 

2.2 borrow表

借书单,存储借书人ID,书名,作者,借书时间。主码是name和author。

 

2.3 user表

使用者,包括ID,password,job是个只有1位的数字,0表示读者,1表示管理员,登录的时候通过检测其job然后选择是跳转到读者界面还是管理员界面。

 

三、各个模块介绍

 

 

3.1 初始界面initial

import tkinter as tk
import reader
import manager

def frame():#初始界面
    global root
    root=tk.Tk()
    root.geometry('900x700')
    root.title('西电图书管理系统')
    lable0=tk.Label(root,text='欢迎来到XDU图书馆',bg='pink',font=('微软雅黑',50)).pack()#上
	#canvas是个画布,想要插入图片的话首先要定义个canvas
    canvas=tk.Canvas(root,height=500,width=500)#中
    image_file=tk.PhotoImage(file='2.gif')
    #图片文件的后缀必须是.gif,且亲测不能自行鼠标右键重命名更改成.gif,要用win10里内置的画图功能,打开图片然后另存为的时候选择.gif
    #图片文件必须放到你的项目目录里边才有效
    image=canvas.create_image(250,100,image=image_file)
    canvas.place(x=170,y=170)

    lable1=tk.Label(root,text='请选择用户类型:',font=('微软雅黑',20)).place(x=80,y=500)#下
    tk.Button(root, text='读  者',font=('微软雅黑',15),width=10, height=2,command=exit_reader).place(x=350, y=420)
    tk.Button(root, text='管理员',font=('微软雅黑',15),width=10, height=2,command=exit_manager).place(x=350, y=550)

    root.mainloop()#必须要有这句话,你的页面才会动态刷新循环,否则页面不会显示 

def exit_reader():#跳转至读者界面
    root.destroy()
    reader.frame()

def exit_manager():#跳转至管理员界面
    root.destroy()
    manager.frame()

if __name__ == '__main__':
    frame()

 

效果就是上面这样的。 这个初始界面就比较简单,点击读者跳转到读者界面,点击管理员跳转到管理员界面。

3.2 manager登录注册模块

当我们从初始界面选择“管理员”,那么这时候调用exit_manager()函数,来到了管理员界面

import tkinter as tk
import tkinter.messagebox as msg #这个是会弹出一个警告/提示小框
import initial
import pymysql
import ID

def frame():#管理员界面
    global root
    root= tk.Tk()
    root.geometry('900x700')
    root.title('西电图书管理系统')
    lable0 = tk.Label(root, text='管理员登录', bg='pink', font=('微软雅黑', 50)).pack()  # 上

    canvas = tk.Canvas(root, height=500, width=500)  # 中
    image_file = tk.PhotoImage(file='2.gif')
    image = canvas.create_image(250, 100, image=image_file)
    canvas.place(x=190, y=170)

    lable1 = tk.Label(root, text='请选择:', font=('微软雅黑', 20)).place(x=80, y=400)  # 下
    tk.Button(root, text='登录', font=('微软雅黑', 15), width=10, height=2, command=login).place(x=150, y=500)
    tk.Button(root, text='注册', font=('微软雅黑', 15), width=10, height=2, command=register).place(x=350, y=500)
    tk.Button(root, text='退出', font=('微软雅黑', 15), width=10, height=2, command=exit_manager).place(x=550, y=500)
    root.mainloop()

def login():#登录小窗口
    global root1
    root1=tk.Tk()
    root1.wm_attributes('-topmost', 1)#将登录窗口置顶不至于被遮到下面
    root1.title('管理员登录')
    root1.geometry('500x300')

    lable1 = tk.Label(root1, text='账号:', font=25).place(x=100,y=50)
    lable2 = tk.Label(root1, text='密码:', font=25).place(x=100, y=100)

    global entry_name, entry_key
    name=tk.StringVar()
    key = tk.StringVar()

    entry_name = tk.Entry(root1, textvariable=name, font=25)
    entry_name.place(x=180, y=50)
    entry_key = tk.Entry(root1, textvariable=key, font=25,show='*')
    entry_key.place(x=180,y=100)
    # 百度:tkinter要求由按钮(或者其它的插件)触发的控制器函数不能含有参数,若要给函数传递参数,需要在函数前添加lambda:
    button1 = tk.Button(root1, text='确定', height=2, width=10, command=lambda: ID.id_check('1'))
    button1.place(x=210, y=180)
#当我们输入账号和密码,点击确定时候,会调用ID模块里的id_check()函数,1是参数,表示其身份是管理员
def register():#注册小窗口
    global root2
    root2 = tk.Tk()
    root2.wm_attributes('-topmost', 1)
    root2.title('管理员注册')
    root2.geometry('500x300')

    lable1 = tk.Label(root2, text='账号:', font=25).place(x=100, y=50)
    lable2 = tk.Label(root2, text='密码:', font=25).place(x=100, y=100)
    lable2 = tk.Label(root2, text='确认密码:', font=25).place(x=80, y=150)

    global entry_name, entry_key, entry_confirm
    name = tk.StringVar()
    key = tk.StringVar()
    confirm = tk.StringVar()
    entry_name = tk.Entry(root2, textvariable=name, font=25)
    entry_name.place(x=180, y=50)
    entry_key = tk.Entry(root2, textvariable=key, font=25, show='*')
    entry_key.place(x=180, y=100)
    entry_confirm = tk.Entry(root2, textvariable=confirm,font=25, show='*')
    entry_confirm.place(x=180, y=150)
    # 百度:tkinter要求由按钮(或者其它的插件)触发的控制器函数不能含有参数,若要给函数传递参数,需要在函数前添加lambda:
    button1 = tk.Button(root2, text='确定', height=2, width=10, command=lambda: ID.id_write('1'))
    button1.place(x=210, y=200)
#当我们点击确定的时候,会调用ID模块里的id_write()函数,1是参数,表示其身份是管理员
def exit_manager():#退出管理员界面,跳转至初始界面
    root.destroy()
    initial.frame()

 

 

3.3 ID模块

ID模块相当于后端了,主要实现连接数据库,检查账号的有无,核对密码,注册等功能。

import tkinter as tk
import tkinter.messagebox as msg
import pymysql
import initial
import manager
import reader
import m_operation
import r_operation
def id_check(a):#检查账号
    global id
    if a == '1':#在管理员界面下登录,参数是1
    #把账号/密码框框里输入的字符串赋值给id/password
        id = manager.entry_name.get()
        password = manager.entry_key.get()
    else:#在读者界面下登录,参数是0
        id = reader.entry_name.get()
        password = reader.entry_key.get()
    getid()#最后得到id
    #连接数据库,root是你数据库的用户名,应该是默认的是root,qwer是你数据库的密码,library是你要连接的数据库名字
    db = pymysql.connect("localhost", "root", "qwer", "library")
    #建立游标cursor,这个游标可以类比指针,这样理解比较直观
    cursor = db.cursor()
    sql = "SELECT password FROM user WHERE id='%s' AND job='%s'" % (id,a)
    cursor.execute(sql) #sql语句被执行
    result = cursor.fetchone()#得到的结果返回给result数组
    if result:#如果查询到了账号存在
            if password == result[0]:#result[0]是数组中的第一个结果
                success_login(a)#密码对上了,进入对应的读者/管理员操作界面
            else:#有账号但密码没对上
               msg._show(title='错误!',message='账号或密码输入错误!')
    else:#没有账号
        msg._show(title='错误!',message='您输入的用户不存在!请先注册!')
        if a=='1':
            manager.root1.destroy()#关闭登录小窗口,回到管理员界面
        elif a=='0':
            reader.root1.destroy()
    db.close()#查询完一定要关闭数据库啊

def success_login(a):#成功登录
    if a == '1':
        manager.root1.destroy()
        m_operation.frame()#销毁登录注册界面,跳转到管理员的操作界面

    elif a == '0':
        reader.root1.destroy()
        r_operation.frame()#销毁登录注册界面,跳转到读者的操作界面

def id_write(a):#写入(注册)账号
    db = pymysql.connect("localhost", "root", "qwer", "library")
    cursor = db.cursor()
    if a=='1':#跟check函数里边十分类似
        id = manager.entry_name.get()#得到输入的账号
        password = manager.entry_key.get()#得到输入的密码
        confirm = manager.entry_confirm.get()#得到输入的确认密码
    elif a=='0':
        id = reader.entry_name.get()
        password = reader.entry_key.get()
        confirm = reader.entry_confirm.get()

    sql0 = "SELECT id FROM user WHERE id='%s' AND job='%s'" % (id,a)
    sql1 = "INSERT INTO user VALUES(%s,%s,%s) " % (id, password, a)
#首先检查两次输入的密码是否一致,一致后再检查注册的账号是否已经存在
    if password == confirm:
        cursor.execute(sql0)
        result = cursor.fetchone()
        if result:
            msg.showerror(title='错误!', message='该账号已被注册,请重新输入!')
        else:
            cursor.execute(sql1)
            db.commit()
            db.close()
            msg.showinfo(title='成功!', message='注册成功,请登录!')

    else:
        msg.showerror(title='错误!', message='两次密码不一致,请重新输入!')

def getid():
    return id

3.4 reader登录注册模块

同2.2,如法炮(pao二声)制。 (咳咳学好语文也好重要呀!)

import tkinter as tk
import initial
import ID
def frame():
    global root
    root= tk.Tk()
    root.geometry('900x700')
    root.title('西电图书管理系统')
    lable0 = tk.Label(root, text='读者登录', bg='pink', font=('微软雅黑', 50)).pack()  # 上

    canvas = tk.Canvas(root, height=500, width=500)  # 中
    image_file = tk.PhotoImage(file='2.gif')
    image = canvas.create_image(250, 100, image=image_file)
    canvas.place(x=190, y=170)

    lable1 = tk.Label(root, text='请选择:', font=('微软雅黑', 20)).place(x=80, y=400)  # 下
    tk.Button(root, text='登录', font=('微软雅黑', 15), width=10, height=2, command=login).place(x=150, y=500)
    tk.Button(root, text='注册', font=('微软雅黑', 15), width=10, height=2, command=register).place(x=350, y=500)
    tk.Button(root, text='退出', font=('微软雅黑', 15), width=10, height=2, command=exit_reader).place(x=550, y=500)
    root.mainloop()

def login():
    global root1
    root1=tk.Tk()
    root1.wm_attributes('-topmost', 1)
    root1.title('读者登录')
    root1.geometry('500x300')

    lable1 = tk.Label(root1, text='账号:', font=25).place(x=100, y=50)
    lable2 = tk.Label(root1, text='密码:', font=25).place(x=100, y=100)

    global entry_name, entry_key
    name=tk.StringVar()
    key = tk.StringVar()

    entry_name=tk.Entry(root1,textvariable=name,font=25)
    entry_name.place(x=180,y=50)
    entry_key=tk.Entry(root1, textvariable=key, font=25,show='*')
    entry_key.place(x=180,y=100)
    # 百度:tkinter要求由按钮(或者其它的插件)触发的控制器函数不能含有参数,若要给函数传递参数,需要在函数前添加lambda
    button1=tk.Button(root1,text='确定',height=2,width=10,command=lambda :ID.id_check('0'))
    button1.place(x=210,y=180)

def register():
    global root2
    root2 = tk.Tk()
    root2.wm_attributes('-topmost', 1)
    root2.title('读者注册')
    root2.geometry('500x300')

    lable1 = tk.Label(root2, text='账号:', font=25).place(x=100, y=50)
    lable2 = tk.Label(root2, text='密码:', font=25).place(x=100, y=100)
    lable2 = tk.Label(root2, text='确认密码:', font=25).place(x=80, y=150)

    global entry_name, entry_key, entry_confirm
    name = tk.StringVar()
    key = tk.StringVar()
    confirm = tk.StringVar()
    entry_name = tk.Entry(root2, textvariable=name, font=25)
    entry_name.place(x=180, y=50)
    entry_key = tk.Entry(root2, textvariable=key, font=25, show='*')
    entry_key.place(x=180, y=100)
    entry_confirm = tk.Entry(root2, textvariable=confirm,font=25, show='*')
    entry_confirm.place(x=180, y=150)
    # 百度:tkinter要求由按钮(或者其它的插件)触发的控制器函数不能含有参数,若要给函数传递参数,需要在函数前添加lambda
    button1 = tk.Button(root2, text='确定', height=2, width=10, command=lambda: ID.id_write('0'))
    button1.place(x=210, y=200)

def exit_reader():#退出管理员界面,跳转至初始界面
    root.destroy()
    initial.frame()

3.5 m_operation管理员操作界面

当我们终于成功注册/登录之后,来到了管理员的操作界面。

 

import tkinter as tk
import tkinter.messagebox as msg
import search
from tkinter import ttk
import pymysql
def frame():
    window=tk.Tk()
    window.title('管理员')
    window.geometry('900x700')
    lable0 = tk.Label(window, text='欢迎来到XDU图书馆', bg='pink', font=('微软雅黑', 50)).pack()  # 上

    lable1 = tk.Label(window, text='请选择操作:', font=('微软雅黑', 20)).place(x=80, y=400)  # 下
    tk.Button(window, text='进购图书', font=('微软雅黑', 15), width=10, height=2,command=purchase).place(x=350, y=250)
    tk.Button(window, text='注销图书', font=('微软雅黑', 15), width=10, height=2,command=cancel).place(x=350, y=350)
    tk.Button(window, text='信息查询', font=('微软雅黑', 15), width=10, height=2,command=search.frame).place(x=350, y=450)
    window.mainloop()

def purchase():#进购图书
    global win
    win = tk.Tk()
    win.title('管理员')
    win.geometry('900x300')
    win.wm_attributes('-topmost', 1)
    lable1 = tk.Label(win, text='请填写进购图书的信息:', font=('微软雅黑', 20)).place(x=30, y=100)

    tk.Label(win, text='图书类目:', font=('宋体', 12)).place(x=30, y=200)
    global list#这个是一个下拉页表项,只能从下面的list['values']里边选
    comvalue = tk.StringVar()
    list = ttk.Combobox(win, textvariable=comvalue, height=10, width=10)
    list.place(x=100, y=200)
    list['values'] = ('全部', '人文', '艺术', '计算机', '科技', '杂志')
    list.current(0)#默认显示'全部'

    global b_name
    tk.Label(win, text='书名:', font=('宋体', 12)).place(x=200, y=200)
    b_name = tk.Entry(win, font=('宋体', 12), width=10)
    b_name.place(x=250, y=200)

    global author
    tk.Label(win, text='作者:', font=('宋体', 12)).place(x=350, y=200)
    author = tk.Entry(win, font=('宋体', 12), width=10)
    author.place(x=400, y=200)

    global price
    tk.Label(win, text='价格:', font=('宋体', 12)).place(x=460, y=200)
    price = tk.Entry(win, font=('宋体', 12), width=10)
    price.place(x=510, y=200)

    global amount
    tk.Label(win, text='数量:', font=('宋体', 12)).place(x=560, y=200)
    amount = tk.Entry(win, font=('宋体', 12), width=5)
    amount.place(x=610, y=200)

    tk.Button(win, text='确认添加', font=('宋体', 12), width=10, command=add).place(x=700, y=195)
    
def add():#添加图书信息到数据库中
    sql="INSERT INTO book VALUES('%s','%s','%s','%s','%s')"% (list.get(),b_name.get(),author.get(),price.get(),amount.get())
    db = pymysql.connect("localhost", "root", "qwer", "library")
    cursor = db.cursor()
    cursor.execute(sql)
    db.commit()#这句不可或缺,当我们修改数据完成后必须要确认才能真正作用到数据库里
    db.close()
    msg.showinfo(title='成功!', message='新书已入库!')
def cancel():#撤销图书
    global win
    win = tk.Tk()
    win.title('管理员')
    win.geometry('900x300')
    win.wm_attributes('-topmost', 1)
    lable1 = tk.Label(win, text='请填写注销图书的信息:', font=('微软雅黑', 20)).place(x=30, y=100)

    tk.Label(win, text='图书类目:', font=('宋体', 12)).place(x=30, y=200)
    global list
    comvalue = tk.StringVar()
    list = ttk.Combobox(win, textvariable=comvalue, height=10, width=10)
    list.place(x=100, y=200)
    list['values'] = ('全部', '人文', '艺术', '计算机', '科技', '杂志')
    list.current(0)

    global b_name
    tk.Label(win, text='书名:', font=('宋体', 12)).place(x=200, y=200)
    b_name = tk.Entry(win, font=('宋体', 12), width=10)
    b_name.place(x=250, y=200)

    global author
    tk.Label(win, text='作者:', font=('宋体', 12)).place(x=350, y=200)
    author = tk.Entry(win, font=('宋体', 12), width=10)
    author.place(x=400, y=200)

    tk.Button(win, text='确认注销', font=('宋体', 12), width=10, command=delete).place(x=600, y=195)

def delete():删除图书
    sql = "DELETE FROM book WHERE type='%s' AND name='%s' AND author='%s'" % (list.get(),b_name.get(),author.get())
    db = pymysql.connect("localhost", "root", "qwer", "library")
    cursor = db.cursor()
    cursor.execute(sql)
    db.commit()#这句不可或缺,当我们修改数据完成后必须要确认才能真正作用到数据库里
    msg.showinfo(title='成功!', message='该书已删除!')

 

 

3.6 r_operation读者操作模块

如2.5,如法炮制。但是要引入py内置的datetime模块

import tkinter as tk
import tkinter.messagebox as msg
from tkinter import ttk
import search
import ID
import datetime as dt#datetime
import pymysql

def frame():
    window2=tk.Tk()
    window2.title('读者')
    window2.geometry('700x600')
    lable0 = tk.Label(window2, text='欢迎来到XDU图书馆', bg='pink', font=('微软雅黑', 50)).pack()  # 上

    lable1 = tk.Label(window2, text='请选择操作:', font=('微软雅黑', 20)).place(x=80, y=400)  # 下
    tk.Button(window2, text=' 借  书', font=('微软雅黑', 15), width=10, height=2,command=borrow).place(x=350, y=250)
    tk.Button(window2, text=' 还  书', font=('微软雅黑', 15), width=10, height=2,command=turnback).place(x=350, y=350)
    tk.Button(window2, text='信息查询', font=('微软雅黑', 15), width=10, height=2,command=search.frame).place(x=350, y=450)
    window2.mainloop()

def borrow():
    global win
    win = tk.Tk()
    win.title('读者')
    win.geometry('900x300')
    win.wm_attributes('-topmost', 1)
    lable1 = tk.Label(win, text='请填写所借图书的信息:(书名作者都要填写正确无误!)', bg='pink',font=('微软雅黑', 20)).place(x=30, y=100)

    global b_name
    tk.Label(win, text='书名:', font=('宋体', 12)).place(x=200, y=200)
    b_name = tk.Entry(win, font=('宋体', 12), width=10)
    b_name.place(x=250, y=200)

    global author
    tk.Label(win, text='作者:', font=('宋体', 12)).place(x=350, y=200)
    author = tk.Entry(win, font=('宋体', 12), width=10)
    author.place(x=400, y=200)

    tk.Button(win, text='确认借书', font=('宋体', 12), width=10, command=confirm_borrow).place(x=600, y=195)

def confirm_borrow():
    db = pymysql.connect("localhost", "root", "qwer", "library")
    cursor = db.cursor()
    sql0="SELECT amount FROM book WHERE name='%s' AND author='%s'" % (b_name.get(),author.get())
    cursor.execute(sql0)
    result=cursor.fetchone()
    if result:
        if result != '0':
            time = dt.datetime.now().strftime('%F')#得到的时间不是字符串型,我们要把时间转化成字符串型
            sql = "INSERT INTO borrow VALUES('%s','%s','%s','%s')" % (ID.getid(),b_name.get(),author.get(),time)
            sql1="UPDATE book SET amount=amount-1 WHERE name='%s' AND author='%s'" % (b_name.get(),author.get())
            cursor.execute(sql)
            cursor.execute(sql1)
            db.commit()
            db.close()
            msg.showinfo(title='成功!', message='借书成功!请一个月之内归还')
        else:
            msg.showinfo(title='失败!', message='您借的书库存不足!')
    else:
        msg.showinfo(title='错误!', message='未找到该书!')

def turnback():#还书
    global win
    win = tk.Tk()
    win.title('读者')
    win.geometry('550x600')

    db = pymysql.connect("localhost", "root", "qwer", "library")
    cursor = db.cursor()
    sql0 = "SELECT COUNT(*) FROM borrow WHERE id='%s'" % (ID.getid())
    cursor.execute(sql0)
    result = cursor.fetchone()
    if result[0]==0:
        msg.showinfo(title='错误', message='您还没借过书呢!')
    else :
        lable1 = tk.Label(win, text='查询到您有以下书目未还:', bg='pink', font=('微软雅黑', 20)).place(x=80, y=20)
        tree = ttk.Treeview(win, columns=('1', '2'), show="headings")
        tree.column('1', width=150, anchor='center')
        tree.column('2', width=150, anchor='center')
        tree.heading('1', text='书名')
        tree.heading('2', text='作者')
        tree.place(x=100, y=100)

        sql1 = "SELECT bookname,author FROM borrow WHERE id='%s'" % (ID.getid())
        cursor.execute(sql1)
        result1 = cursor.fetchall()
        for i in range(0,result[0]):
            tree.insert('', i, values=(result1[i]))

        lable2 = tk.Label(win, text='请输入还书信息:', bg='pink', font=('微软雅黑', 20)).place(x=80, y=360)
        lable22=tk.Label(win, text='书名作者都要填写正确无误!', bg='pink', font=('微软雅黑', 20)).place(x=80, y=400)
        global b_name
        tk.Label(win, text='书名:', font=('宋体', 12)).place(x=80, y=480)
        b_name = tk.Entry(win, font=('宋体', 12), width=10)
        b_name.place(x=130, y=480)

        global author
        tk.Label(win, text='作者:', font=('宋体', 12)).place(x=230, y=480)
        author = tk.Entry(win, font=('宋体', 12), width=10)
        author.place(x=280, y=480)

        tk.Button(win, text='确认还书', font=('宋体', 12), width=10, command=confirm_turnback).place(x=395, y=480)
    db.close()

def confirm_turnback():
    db = pymysql.connect("localhost", "root", "qwer", "library")
    cursor = db.cursor()

    sql1 = "UPDATE book SET amount=amount+1 WHERE name='%s' AND author='%s'" % (b_name.get(), author.get())
    cursor.execute(sql1)
    db.commit()

    time1=dt.datetime.now()#获取现在的时间
    sql2="SELECT date FROM borrow WHERE bookname='%s' AND author='%s'"%(b_name.get(),author.get())
    cursor.execute(sql2)
    result = cursor.fetchone()
    day=(time1-result[0]).days#得到时间差,检查图书是否超期
    print(day)
    if day>30:
        msg.showinfo(title='还书成功', message='还书成功,但您已经超期!请下次按时归还')
    else:
        msg.showinfo(title='还书成功', message='还书成功,且未超过30天')

    sql0 = "DELETE FROM borrow WHERE bookname='%s' AND author='%s'"%(b_name.get(), author.get())
    cursor.execute(sql0)
    db.commit()
    db.close()
    win.destroy()

3.7 search模块(动态查询)

由于管理员和读者都有查询图书的功能,故为了减少代码,尽量代码重用,将该功能做成模块。search中要有动态查询,即查询条件的个数是可以改变的。

 

import tkinter as tk
import tkinter.messagebox as msg
from tkinter import ttk
import pymysql

def frame():
    global window
    window = tk.Tk()
    window.title('图书查询')
    window.geometry('1200x700')

    tk.Label(window,text='图书类目:',font=('宋体',12)).place(x=220,y=30)

    global list
    comvalue=tk.StringVar()
    list=ttk.Combobox(window,textvariable=comvalue,height=10,width=10)
    list.place(x=300,y=30)
    list['values']=('全部','人文','艺术','计算机','科技','杂志')
    list.current(0)

    global b_name
    tk.Label(window, text='书名:', font=('宋体', 12)).place(x=450, y=30)
    b_name=tk.Entry(window,font=('宋体', 12),width=15)
    b_name.place(x=500,y=30)

    global author
    tk.Label(window, text='作者:', font=('宋体', 12)).place(x=650, y=30)
    author = tk.Entry(window, font=('宋体', 12), width=15)
    author.place(x=700, y=30)

    tk.Button(window,text='搜索',font=('宋体', 12), width=10,command=search).place(x=900,y=25)
    global tree#建立树形图
    yscrollbar = ttk.Scrollbar(window, orient='vertical')#右边的滑动按钮
    tree = ttk.Treeview(window, columns=('1', '2', '3', '4', '5'), show="headings",yscrollcommand=yscrollbar.set)
    tree.column('1', width=150, anchor='center')
    tree.column('2', width=150, anchor='center')
    tree.column('3', width=150, anchor='center')
    tree.column('4', width=150, anchor='center')
    tree.column('5', width=150, anchor='center')
    tree.heading('1', text='类目')
    tree.heading('2', text='书名')
    tree.heading('3', text='作者')
    tree.heading('4', text='价格')
    tree.heading('5', text='库存')
    tree.place(x=200, y=150)
    yscrollbar.place(x=955,y=150)
    window.mainloop()

def search():
#我用了最原始的方法来动态查询
    if list.get()=='全部'and b_name.get()=='' and author.get()=='' :
        sql="SELECT * FROM book "
    elif list.get()=='全部'and b_name.get()=='' and author.get()!='' :
        sql="SELECT * FROM book WHERE author='%s'"%(author.get())
    elif list.get()=='全部'and b_name.get()!='' and author.get()=='' :
        sql = "SELECT * FROM book WHERE name='%s'" % (b_name.get())
    elif list.get() != '全部'  and b_name.get() =='' and author.get() == '' :
        sql = "SELECT * FROM book WHERE type='%s'" % (list.get())
    elif list.get()=='全部'and b_name.get() !='' and author.get()!= '' :
        sql = "SELECT * FROM book WHERE name='%s' AND author='%s'" % (b_name.get(),author.get())
    elif list.get() != '全部' and b_name.get() !='' and author.get() == '' :
        sql = "SELECT * FROM book WHERE type='%s' AND name='%s'" % (list.get(),b_name.get())
    elif list.get() != '全部' and b_name.get() =='' and author.get() != '' :
        sql = "SELECT * FROM book WHERE type='%s' AND author ='%s'" % (list.get(), author.get())
    else :
        sql = "SELECT * FROM book WHERE type='%s' AND name='%s' AND author ='%s'" % (list.get(),b_name.get(), author.get())

    db = pymysql.connect("localhost", "root", "qwer", "library")
    cursor = db.cursor()
    cursor.execute(sql)
    results=cursor.fetchall()
    if results:
        l= len(results)
        for i in range(0,l):#查询到的结果依次插入到表格中
            tree.insert('',i,values=(results[i]))
    else :
        tree.insert('', 0,values=('查询不到结果','查询不到结果','查询不到结果','查询不到结果','查询不到结果'))

    db.close()

四、总结

这是一个较为简单的图书管理系统,其中仍有一些不足。比如人人都能注册管理员账号然后修改图书信息,这会造成系统的不安全。还有就是我们默认的读者借书时候会先查询图书信息,得到图书信息后填写的书名和作者必定是正确的,我没有加上相应的错误处理。然后读者借书超期后有惩罚措施,比如无法借书或限制借书的数量,这个我没有实现,仅仅是提醒了读者有图书已超期。如果有相关问题,欢迎私信作者共同探讨。

 

Python实现带GUI和连接数据库的图书管理系统 文章目录前言二、建立数据库library2.1 book表2.2 borrow表2.3 user表三、各个模块介绍3.1 初始界面initial3.2 manager登录注册模块3.3 ID模块3.4 reader登录注册模块3.5 m_operation管理员操作界面3.6 r_operation读者操作模块3.7 search模块(动态查询)四、总结 前言 大三上学期的程序设计实训大作业,挑了其中一个我认为最简单的的《图书管理系统》来写。用python写是因为py有自带的GUI,即tkint 阅读详情

相关推荐

python图书管理系统设计,python写图书管理系统

self.buttonQuit=wx.Button(parent=self.bitmap,label='退出',pos=(150,200))self.buttonQuit=wx.Button(parent=self.bitmap,label='退出',pos=(150,200))self.buttonQuit=wx.Button(parent=self.bitmap,label='退出',pos=(150,200))

wenangou的博客 391

基于python中sqlite和tkinter的GUI学生管理系统

基于python中sqlite和tkinter的GUI学生管理系统 import tkinter import tkinter.messagebox import tkinter.ttk import sqlite3 # 创建tkinter应用程序 from tkinter import ttk root = tkinter.Tk() # 设置窗口标题 root.title('学生信息管理系统V1.0') # 定义窗口初始大小 root['height'] = 500 root['width'] = 3

Today_2018的博客 5067

用Python实现仓库管理系统:毕设实战与答辩技巧全解析

仓库管理系统是企业信息化中的基础应用,其核心围绕货物入库、出库、库存查询与数据追溯展开。在技术实现上,Python凭借简洁语法与丰富的第三方库,成为快速构建桌面端业务系统的理想选择。通过PyQt5设计图形界面,配合MySQL存储数据,并利用事务与行级锁保证库存数据的一致性,可以有效解决并发操作下的超卖问题。密码加盐哈希、参数化查询等安全实践也提升了系统的可靠性。这类系统广泛应用于中小型仓库、校园毕业设计等场景,既能锻炼数据库设计与软件开发能力,也能为工程实践提供完整范例。从技术选型、数据库设计、核心代码到答

weixin_33708633的博客 324

python使用tkinter库,封装操作excel为GUI程序

首先是完整程序 import xlwings as xws # 操作excel库 import tkinter as tk # Gui库 import random # 随机数 def create(): # 获取编辑框的数据 if len(ebox_min.get()) == 0: temperature_min = 36.0 else: temperature_min = float(ebox_min.get()) if len(

凉开水白菜的博客 6906

python实现图书借阅系统

使用flask框架和mysql数据库实现由界面的图书借阅系统

python界面图书管理系统—GUI界面版

设计一个GUI界面的系统,模拟图书管理,一个面向学生和学校管理员的系统,图书信息以txt文件存在本地。 管理员:查询图书 增加图书 删除图书 学生:借阅图书 归还图书 任何一个操作都会将所更新的图书信息存入本地txt文件。 设计一个GUI界面的系统,模拟图书管理,一个面向学生和学校管理员的系统,图书信息以txt文件存在本地。 管理员:查询图书 增加图书 删除图书 学生:借阅图书 归还图书 任何一个操作都会将所更新的图书信息存入本地txt文件。 设计一个GUI界面的系统,模拟图书管理,一个面向学生和学校管理员的系统,图书信息以txt文件存在本地。 管理员:查询图书 增加图书 删除图书 学生:借阅图书 归还图书 任何一个操作都会将所更新的图书信息存入本地txt文件。 设计一个GUI界面的系统,模拟图书管理,一个面向学生和学校管理员的系统,图书信息以txt文件存在本地。 管理员:查询图书 增加图书 删除图书 学生:借阅图书 归还图书 任何一个操作都会将所更新的图书信息存入本地txt文件。 python 图书管理系统 GUI界面 2020 2022 两年退化

python文本框与数据库的关联_毕设——Python实现带GUI和连接数据库的图书管理系统!...

前言大三上学期的程序设计实训大作业,挑了其中一个我认为最简单的的《图书管理系统》来写。用python写是因为py有自带的GUI,即tkinter模块,对初次接触GUI的新手会比较友好。编译器我用的是Pycharm,你需要检查你的编译器是否带了tkinter模块和pymysql模块,没有的话需要下载安装,具体方法可以百度,很简单。界面很丑,凑合看哦!如果你没有了解过tkinter,建议先去知乎,cs...

weixin_39690625的博客 399

【Lane】 Ultra-Fast-Lane-Detection 复现

引言 车道线检测源码复现以及训练自己的数据集 1 环境搭建 conda create -n lane python=3.7 conda activate lane # 激活环境 conda install pytorch torchvision cudatoolkit=10.1 -c pytorch pip install -r requirements.txt 2 下载项目源码 若在服务器上可以用指令下载,否则直接在网址中下载 git clone https://github.com/cfzd/U

qq_44703886的博客 2万+

pythongui学生管理系统不需要链接数据库的完整代码_毕设——Python实现带GUI和连接数据库的图书管理系统!...

前言大三上学期的程序设计实训大作业,挑了其中一个我认为最简单的的《图书管理系统》来写。用python写是因为py有自带的GUI,即tkinter模块,对初次接触GUI的新手会比较友好。编译器我用的是Pycharm,你需要检查你的编译器是否带了tkinter模块和pymysql模块,没有的话需要下载安装,具体方法可以百度,很简单。界面很丑,凑合看哦!如果你没有了解过tkinter,建议先去知乎,cs...

weixin_39884323的博客 1155

SRAM故障排查实战:如何用Nano Prober定位6T存储单元的异常点

本文详细介绍了在SRAM故障排查中,如何运用Nano Prober(纳米探针)技术精准定位6T存储单元的内部异常。面对传统方法难以发现的电性参数漂移(如晶体管阈值电压偏移)或微小物理缺陷,Nano Prober能直接对单个6T单元内的晶体管进行I-V特性测量,结合失效模式分析,有效解决读写错误等疑难问题,是芯片失效分析的关键工具。

v5w6x的博客 673

TL494充电器原理与维修 (转)

TL494充电器原理与维修 电动自行车充电器多采用开关 电源,型号虽多,但电路结构大同小异,主要区别在于所选的脉宽调制(PWM)芯片不同如(UC3845、UC3842、SG3524、TL494)。现以佳腾牌 充电器为例,介绍其原理和故障检修方法。 一、电路原理 根据实物测绘的佳腾牌充电器电路原理如图1所示。整机可分为PWM产生和推动电路、功 率开关变换电路、...

weixin_30500663的博客 1818

基于Python的图书管理系统毕设源码

本文介绍了一个基于Python的图书管理系统设计与实现方案。系统旨在提高图书馆管理效率和服务质量,主要功能包括图书信息管理、借阅归还管理、查询检索、用户管理等模块。研究采用MySQL数据库存储数据,设计了符合第三范式的数据库表结构。系统具有经济、社会和技术可行性,能够优化图书资源配置、提升读者服务质量并实现数据可视化。文章详细阐述了系统需求分析、功能设计、数据库结构及建表SQL语句,为图书馆信息化建设提供了参考方案。

chesj123456的博客 160

Multisim 14.0实战:从零搭建可调幅多波形信号发生器(附仿真文件)

本文详细介绍了如何在Multisim 14.0中从零搭建一个可调幅多波形信号发生器,涵盖方波、三角波和正弦波的生成原理与实现步骤。通过核心电路架构解析、关键参数设计及Multisim实战操作,帮助电子工程学习者和硬件工程师掌握信号发生器的设计与调试技巧,并提供仿真文件供实践验证。

nokia的博客 1079

基于python+tkinter(Gui)+SQLite3学生成绩管理系统

系统主将使用Tkinter和SQLite3技术实现一个GUI学生成绩管理系统,主要考察Python的GUI界面开发以及数据库的基本操作。Tkinter:Tkinter是Python的一个标准库,用于创建图形用户界面(GUI)。它提供了一系列的工具和控件,可以用来设计和开发交互式的应用程序。Tkinter是一个跨平台的工具包,可以在不同的操作系统上运行。它具有简单易用的特点,使得开发者能够快速地创建界面并添加各种功能。Tkinter提供了一系列的方法和属性,用于控制界面的布局和样式,并且支持用户输入和交互。

Timi2019的博客 953

ic后端学习笔记-floorplan

floorplan是布图规划,规划包括定义芯片的大小,定义芯片内各种模块、hard macros(硬核。比如RAM,ROM及其他IP模块等)、IO等的大小和位置,有时候还需要提前定义一些placement blockages,groups/regions等等,是后端设计的第一步,也是后续所有P&R工作的基础。floorplan与placement的区别是。

tfrofc的博客 5863

电力自动化通信协议:104/101与61850标准解析

电力系统通信协议是智能电网和变电站自动化的核心技术基础。IEC 60870-5-104/101协议作为经典远动通信标准,采用客户端/服务器架构,支持遥测、遥信等数据传输。而IEC 61850标准则通过面向对象建模和SCL语言实现了设备互操作性。这两种协议在实际工程中常配合使用,104协议用于站控层通信,61850则应用于过程层。理解SCL模型文件结构和协议映射原理,对实现智能变电站的配置与调试至关重要。本文通过典型工程案例,详解协议转换和模型配置的最佳实践。

weixin_31155097的博客 372

基于python+tkinter(Gui)的学生信息管理系统

1、 增加学生信息:输入姓名、学号、年龄、手机号2、 修改学生信息:输入新的姓名、学号、年龄、手机号3、 删除学生信息:以学号为索引4、 查询学生信息:以学号为索引5、 显示学生信息:一条一条整页显示。6、数据存在List。运行环境:PyCharm/python3.9。

Timi2019的博客 820

LangGraph实战训练营-打造 WhatsApp 全自动消息收发AI智能助手

本文系统梳理了项目架构(WhatsApp Bridge + Talon Host + LangGraph Agent Harness三层设计)、完整环境搭建流程(Docker/本地双模式部署)、核心原理(WhatsApp桥接机制、NVIDIA Parakeet语音转录管线、Cron定时调度、Agent图状状态机),并提供了基础对话、文件操作、语音处理、定时任务等六大实战示例。同时涵盖安全策略、性能优化、数据备份等生产级运维实践,以及十个高频问题的排查方案。

program哲学 202

Python+Tkinter+MySQL图书管理系统设计与开发毕设源码

通过深入研究和实践,本研究提出了一个基于Python编程语言、Tkinter图形用户界面库和MySQL数据库的图书管理系统设计方案,为相关领域的学术研究提供了新的视角和案例。此外,本研究在系统设计过程中所采用的方法论和技术手段,如模块化设计、面向对象编程等,也为计算机科学的理论研究提供了实践依据。例如,Java是一种常用的编程语言,因其跨平台性和强大的社区支持而被广泛应用于图书管理系统的开发。此外,借阅记录表的“return_date”字段是可选的,如果您的系统需要处理图书的归还,则需要取消注释相应的行。

chesj123456的博客 461

Coze智能体开发:扣子空间制作PPT功能

扣子空间内置了丰富的场景模板,涵盖人文历史、学术分享、研究报告、数据分析等场景,可以满足不同用户的需求。 你只需输入与制作 PPT 相关的提示词,Agent 就能基于这些提示词展示思考的过程,并自动生成完整的 PPT。

王国平的博客 2061

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

别再下那些跑不起来的源码了!分享一个亲测完美的 Python 图书馆管理系统(附源码+数据库)

摘要: 本文分享了一套修复完善的Python图书管理系统(PyQt5+MySQL),解决了网上常见源码的数据库连接、环境配置等问题。亮点包括深色主题界面、改用pymysql简化安装、提供完整SQL文件及默认账号(admin/123456)。附详细部署指南,只需Python3+MySQL,执行pip install PyQt5 pymysql即可运行。资源含源码、数据库及文档,适合学习参考,禁止商用。获取链接见文内,整理不易,欢迎反馈问题。

2301_79231040的博客 540

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

基于python+tkinter(Gui)+SQLite3超市信息管理系统&商品信息管理系统

1、 增加商品信息:输入商品编号、商品名称、商品价格、商品库存2、 修改商品信息:输入商品编号、商品名称、商品价格、商品库存3、 删除商品信息:以编号为索引4、 查询商品信息:以编号为索引5、 显示商品信息:显示所有商品信息。运行环境:PyCharm/python3.9/SQLite3以上。

Timi2019的博客 430

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

全球国家地区城市数据

MySQL全球国家地区城市数据报。。。。。。。。。。。。

上一篇: 爬取私厨,获取菜单!谁还不会做两个菜了!
下一篇: bs4根据输入的公司名称来爬取公司的详细信息!小白看不懂系列
pythonlaodi
博客等级 码龄6年 286粉丝 244原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址