基于python的计算器制作
简单计算器制作import tkinter as tkfrom decimal import Decimalimport mathtop=tk.Tk()top.title("我是一个计算器")top.geometry("350x400+150+150")n=0#实现单击数字对应出现在文本框中def nclick(): global n n=n+1 text=bt['text'] text1.insert(n-1,text)def n1click():
原创
2020-06-27 16:05:58 ·
1184 阅读 ·
0 评论