python 实现简单的计算器(gui界面)

上传:goldore 浏览: 17 推荐: 0 文件:PDF 大小:36.06KB 上传时间:2020-12-22 13:26:42 版权申诉
运行效果: 完整代码 from tkinter import * def click(num): global op op=op+str(num) iptext.set(op) def evaluate(): global op output=str(eval(op)) iptext.set(output) def clearDisplay(): global op op="" iptext.set(op) calc=Tk() calc.title("TechVidvan Calculator") op="" iptext=StringV
上传资源
用户评论