摘要:
1 from tkinter import * 2 def printSelection(): 3 print(cities[int(var.get())]) 4 lab.config(text="你选择了"+cities[int(var.get())]) 5 6 root = Tk() 7 roo 阅读全文
posted @ 2019-12-03 21:23
做梦者造梦
阅读(271)
评论(0)
推荐(0)
摘要:
from tkinter import * def printSelection(): num = var.get() if num == 1: lab.config(text="你是男生") else: lab.config(text="你是女生") root =Tk() root.title(" 阅读全文
posted @ 2019-12-03 18:25
做梦者造梦
阅读(630)
评论(0)
推荐(0)

浙公网安备 33010602011771号