|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
x = int(input("请输入需要匹配的数字:"))
import random
z1 = 0
z = 0
c = 0
s= []
s1 = []
while z < 88:
shuzi = random.randint(0,1024)
s.append(shuzi)
z += 1
while z1 < 88:
while c < 88:
shuzi1 = random.randint(0,1024)
s1.append(shuzi1)
c += 1
s[z1] = s1
s1 = []
c = 0
z1 += 1
for i in range(88):
for j in range(88):
if s[i][j] == x:
print(i, j)
#i = 0
#n = 0
#while i < 88:
# while n < 88:
# if s[i][n] == x:
# print(i,n,end = '\n')
# n += 1
# continue
# else:
# n += 1
# else:
# i += 1
|
|