所以,我需要将一个列表转换为具有每个元素中包含2个元素的子列表到一个字符串
是)我有的:
[['A','B'],['C','D']]
Run Code Online (Sandbox Code Playgroud)
我想要转换成什么:
"ABCD"
Run Code Online (Sandbox Code Playgroud)
我试过这个:
list=[['A','B'],['C','D']]
hello=""
for i in list:
hello=hello+i
print (hello)
Run Code Online (Sandbox Code Playgroud)
说我有一个TypeError,我不明白为什么.