추가 '2차원 배열'
This commit is contained in:
parent
e5a24cf6fc
commit
aad229b21a
|
|
@ -0,0 +1,27 @@
|
||||||
|
a=[['1','2','3'],['4','5','6'],['7','8','9']]
|
||||||
|
b=0
|
||||||
|
c=0
|
||||||
|
t=0
|
||||||
|
u=0
|
||||||
|
result = ""
|
||||||
|
|
||||||
|
"""while t<3:
|
||||||
|
u=0
|
||||||
|
c=0
|
||||||
|
result = ''
|
||||||
|
while u<3:
|
||||||
|
result = result + a[b][c]
|
||||||
|
c+=1
|
||||||
|
u+=1
|
||||||
|
print(result)
|
||||||
|
b+=1
|
||||||
|
t+=1"""
|
||||||
|
|
||||||
|
i=''
|
||||||
|
j=''
|
||||||
|
|
||||||
|
for i in a:
|
||||||
|
result=""
|
||||||
|
for j in i:
|
||||||
|
result = result + j
|
||||||
|
print(result)
|
||||||
Loading…
Reference in New Issue