国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊

from tkinter import * a=Tk() a.title('BMI計(jì)算') a.geometry('400x40

2023-04-18 14:57 作者:Xiaonap  | 我要投稿

from tkinter import *

a=Tk()

a.title('BMI計(jì)算')

a.geometry('400x400')


L1=Label(a,text="身高(m):")

L2=Label(a,text="體重(kg):")

L1.grid(row=0, column=0)

L2.grid(row=1, column=0)


H=Entry(a,width=30)

H.grid(row=0, column=1)

W=Entry(a,width=30)

W.grid(row=1, column=1)


L3=Label(a,text='')

L4=Label(a,text='')

L3.grid(row=2,column=1)

L4.grid(row=3,column=1)


def u():

? ? m=float(H.get())

? ? n=float(W.get())

? ? s=n/m**2

? ? L3.config(text=str(s))

? ? if s<18.5:

? ? ? ? L4.config(text='體重過輕')

? ? elif s>=18.5 and s<24.9:

? ? ? ? L4.config(text='正常范圍')

? ? elif s>=24.9 and s<29.9:

? ? ? ? L4.config(text='體重過重')

? ? else :

? ? ? ? L4.config(text='肥胖')


J=Button(a,text='計(jì)算',command=u)

J.grid(row=4, column=1)


mainloop()


from tkinter import * a=Tk() a.title('BMI計(jì)算') a.geometry('400x40的評論 (共 條)

分享到微博請遵守國家法律
左云县| 温泉县| 华亭县| 兰西县| 黑山县| 宜城市| 区。| 南木林县| 兴海县| 正宁县| 宝鸡市| 东兴市| 茶陵县| 信阳市| 宿迁市| 织金县| 荔波县| 潮安县| 义乌市| 郧西县| 富锦市| 姜堰市| 祁门县| 宜黄县| 枞阳县| 明水县| 兴国县| 射阳县| 宝清县| 扎鲁特旗| 麟游县| 大名县| 郁南县| 深州市| 新宁县| 清原| 东明县| 紫阳县| 阿鲁科尔沁旗| 六盘水市| 康保县|