image.png (66.83 KB, 下载次数: 0)
下载附件
2023-1-2 20:44 上传
源码
[Python] 纯文本查看 复制代码from tkinter import *
win = Tk()
win.geometry('500x350+300+300')
win['background'] = 'white'
for i in range(10):
for j in range(10):
Button(win,text='(' + str(i) + ',' + str(j) + ')',bg='white',fg='black').grid(row=i,column=j)
win.mainloop()