yu123py
发表于 2019-4-26 21:09:37
不会换行。
def addl(x, y):
l = []
for i in range(len(x)):
l.append([])
for j in range(len(x)):
l.append(x + y)
return l
X = [,
,
]
Y = [,
,
]
print(addl(X, Y))
9521942
发表于 2019-4-26 21:16:14
做题 不划水
zjhahaha
发表于 2019-5-5 19:47:29
看看什么隐藏着。
God·cc
发表于 2019-5-5 20:26:58
10
TIANKONG210
发表于 2019-5-7 17:41:43
,
一条乐
发表于 2019-8-13 16:37:21
x = [,,]
y = [,,]
z = [ for row in range(3)]
for i in range(3):
for j in range(3):
temp = x + y
z = temp
print(z)
kaishao
发表于 2019-8-18 21:32:10
答案
克里斯保罗
发表于 2019-8-27 17:16:48
交作业~{:10_277:}
X = [,
,
]
Y = [,
,
]
result =[
,
,
]
for each1 in range(3):
for each2 in range(3):
result = X+Y
print(result)
JMbaozi
发表于 2019-8-27 17:24:06
learn
Xiaolin16
发表于 2019-8-28 22:18:02
bang!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
阿瑞
发表于 2019-9-7 17:39:03
x = [,
,
]
y = [,
,
]
z = ), sum (y, []))]
print(,z,z])
dstsyj
发表于 2019-9-24 13:45:04
学习了
linchch610
发表于 2019-9-24 15:57:05
学习学习
191820061
发表于 2019-10-26 09:31:03
看看
javen7
发表于 2019-11-21 10:37:18
回复见答案
jjk007
发表于 2019-11-21 16:13:01
看着结果,发现自己动手还是很困难。
ouyunfu
发表于 2020-2-12 06:47:23
X = [,
,
]
Y = [,
,
]
def f11(X,Y):
Z=X.copy()
for i in range(3):
for j in range(3):
Z=X+Y
return Z
print(f11(X,Y))
Yedada
发表于 2020-2-26 22:49:16
X = [,
,
]
Y = [,
,
]
T = []
for a, b in zip(X, Y):
for c, d in zip(a, b):
T.append(c + d)
Z = , T, T]
海上飞鱼
发表于 2020-2-28 22:15:56
从鱼c开始入门python
海上飞鱼
发表于 2020-2-28 22:18:26
X = [,
,
]
Y = [,
,
]
# 双重for循环
row,col = len(X),len(X)
Z = []
for i in range(row):
ZC = []
for j in range(col):
ZC.append(X + Y)
Z.append(ZC)
print(Z)