Python tkinter制作简易计算器
python版本3.9
import tkinter as tk
# 自定义异常类
class OperatorError(Exception):
def __init__(self, count, maxcount):
self.count = count
self.maxcount = maxcount
HEIGHT = 400
WIDTH = 400
root = tk.Tk()
root.title('简易计算器')
canvas = tk.Canvas
原创
2021-11-18 00:00:00 ·
629 阅读 ·
1 评论