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

goldore 16 0 PDF 2020-12-22 13:12: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

用户评论
请输入评论内容
评分:
暂无评论