import tkinter as tk
window = tk.Tk()
window.title('计算器')
window.geometry('360x435')
window.attributes("-alpha", 0.95)
window.resizable(0, 0)#窗口大小固定,不能缩放
var = tk.StringVar()
frm_1 = tk.Frame(window, width=360, height=115, bg='CadetBlue').place(x=0, y=0, anchor=tk.NW)#数字显示区
frm_2 = tk.Frame(window, width=270, height=240, bg='DarkSeaGreen').place(x=0, y=115, anchor=tk.NW)#数字键盘
frm_3 = tk.Frame(window, width=90, height=320, bg='Beige').place(x=270, y=115, anchor=tk.NW)#加减乘除
frm_4 = tk.Frame(window, width=270, height=80, bg='CadetBlue').place(x=0, y=355, anchor=tk.NW)#不可循环输出的
var_result = tk.StringVar()
var_dian=tk.StringVar()
var_dian.set('.')