该怎么把里面的中括号去掉?
d=['Alice','Bob','Candy','David','Ellena']
l=['Gen','Phoebe','Zeo']
d.append(l)
print(d) ==>['Alice', 'Bob', 'Candy', 'David', 'Ellena', ['Gen', 'Phoebe', 'Zeo']]
d=['Alice','Bob','Candy','David','Ellena']
l=['Gen','Phoebe','Zeo']
d.append(l)
print(d) ==>['Alice', 'Bob', 'Candy', 'David', 'Ellena', ['Gen', 'Phoebe', 'Zeo']]
2021-03-08
举报