from tkinter import *
import pickle
from tkinter import messagebox
app=Tk()
app.title('仓库系统')
app.geometry('600x400')
var_print=StringVar()
dict1={}
def find_things():
try:
name = l.get(l.curselection())
with open('仓库.pkl', 'rb') as ck:
dict2 = pickle.load(ck)
var_print.set(name + '的数量为 ' + str(dict2[name]) + ' 台')
except:
var_print.set('请点击需要查询的商品')
def out_things():
try:
name=l.get(l.curselection())
def yes_re():
number_1=e.get()
with open('仓库.pkl', 'rb') as ck:
dict2 = pickle.load(ck)
dict2[name] = int(dict2[name]) - int(number_1)
with open('仓库.pkl', 'wb') as ck:
pickle.dump(dict2, ck)
messagebox.showinfo(message='恭喜卖出!生意兴隆
相关知识
Python编写玫瑰花
基于python“花开富贵”花园管理系统
springboot+vue仓库管理系统【开题+程序+论文】
基于python的在线花店管理系统的设计与开发
花都仓库管理系统
花卉仓库管理系统设计
用python画花瓣
Python 常用的标准库以及第三方库有哪些?
卷积神经网络实现鸢尾花数据分类python代码实现
“花开富贵”花园管理系统
网址: 用python编写仓库管理系统 https://m.huajiangbk.com/newsview546499.html
上一篇: 爱库存安卓版下载安装 |
下一篇: {库存优化管理}库存系统模型概述 |