GGB1998
发表于 2023-11-26 11:24:22
技术含量很高
zhangjinxuan
发表于 2023-11-26 14:43:26
{:10_277:}
METALARISING
发表于 2023-11-26 15:26:22
from tkinter import *
import random
tkscore = random.randint(0, 9)
r1 = input('0, 0 输入什么:')
r1 = input('0, 0 输入什么:')
r1 = input('0, 0 输入什么:')
r1 = input('0, 0 输入什么:')
r1 = input('0, 0 输入什么:')
r1 = input('0, 0 输入什么:')
r1 = input('0, 0 输入什么:')
root = Tk()
button_1 = Button(text=tkscore, bd='yellow').grid(row=0, culunm=0)
button_2 = Button(text=, bg='yellow').grid(row=0, culunm=1)
button_3 = Button(text=, bg='yellow').grid(row=0, culunm=2)
button_4 = Button(text=, bg='yellow').grid(row=1, culunm=0)
button_5 = Button(text=, bg='yellow').grid(row=1, culunm=1)
button_6 = Button(text=, bg='yellow').grid(row=1, culunm=2)
button_7 = Button(text=, bg='yellow').grid(row=2, culunm=0)
button_8 = Button(text=, bg='yellow').grid(row=2, culunm=1)
button_9 = Button(text=tkscore, bd='yellow').grid(row=2, culunm=2)
mainloop()
METALARISING
发表于 2023-11-26 15:27:15
METALARISING 发表于 2023-11-26 15:26
from tkinter import *
import random
发错
再来
METALARISING
发表于 2023-11-26 15:42:31
from tkinter import *
import random
tkscore = random.randint(0, 9)
r2 = input('0, 1 输入什么:')
try:
r2 = input('0, 1 输入什么:')
except ValueError as e:
print(e.reason)
except TypeError as e:
print(e.reason)
r3 = input('0, 2 输入什么:')
try:
r3 = input('0, 2 输入什么:')
except ValueError as e:
print(e.reason)
except TypeError as e:
print(e.reason)
r4 = input('1, 0 输入什么:')
try:
r4 = input('1, 0 输入什么:')
except ValueError as e:
print(e.reason)
except TypeError as e:
print(e.reason)
r6 = input('1, 2 输入什么:')
try:
r6 = input('1, 2 输入什么:')
except ValueError as e:
print(e.reason)
except TypeError as e:
print(e.reason)
r7 = input('2, 0 输入什么:')
try:
r7 = input('2, 0 输入什么:')
except ValueError as e:
print(e.reason)
except TypeError as e:
print(e.reason)
r8 = input('2, 1 输入什么:')
try:
r8 = input('2, 1 输入什么:')
except ValueError as e:
print(e.reason)
except TypeError as e:
print(e.reason)
root = Tk()
button_1 = Button(text=tkscore, bd='yellow').grid(row=0, culunm=0)
button_2 = Button(text=r2, bg='yellow').grid(row=0, culunm=1)
button_3 = Button(text=r3, bg='yellow').grid(row=0, culunm=2)
button_4 = Button(text=r4, bg='yellow').grid(row=1, culunm=0)
button_5 = Button(text=tkscore, bg='yellow').grid(row=1, culunm=1)
button_6 = Button(text=r6, bg='yellow').grid(row=1, culunm=2)
button_7 = Button(text=r7, bg='yellow').grid(row=2, culunm=0)
button_8 = Button(text=r8, bg='yellow').grid(row=2, culunm=1)
button_9 = Button(text=tkscore, bd='yellow').grid(row=2, culunm=2)
if r2 = r3 = r4 = r6 = r7 = r8:
print('no no')
if r2 != r3 != r4 != r6 != r7 != r8:
print('yes~ yes~')
mainloop()
hveagle
发表于 2023-11-26 17:06:07
286
弋汐啦
发表于 2023-11-29 09:04:33
想试试
陈勃
发表于 2023-11-29 20:03:53
好帖{:10_275:}
zhangjinxuan
发表于 2023-11-30 10:38:13
慢慢咕,不急
终苑
发表于 2023-12-2 20:41:50
看看
zhangjinxuan
发表于 2023-12-8 10:18:46
捞不了一点
18820452942
发表于 2023-12-8 14:42:28
{:5_91:}
桐谷和人ovo
发表于 2023-12-12 14:08:51
学习
陈勃
发表于 2023-12-13 09:59:31
好帖{:5_106:}
陈勃
发表于 2023-12-13 10:00:11
育碧
九歌当下
发表于 2023-12-15 06:10:24
看看
hveagle
发表于 2023-12-15 17:25:25
生成数字:1{:10_256:}
谁来挑战?
stormsxf
发表于 2023-12-15 20:59:17
好帖
好帖
好帖
sfqxx
发表于 2024-1-11 17:45:07
查看:5175
陈勃
发表于 2024-1-13 09:31:26
{:10_254:}