【发布时间】:2019-05-18 19:23:44
【问题描述】:
a = [apple,[green,red,yellow]]
print(a[0]+ " available in these colours " + a[1[]])
如何将字符串与列表项中的列表连接起来?
预期结果:-
apple available in these collars green red yellow
【问题讨论】:
-
我不认为这是完全重复的建议。这不是列表列表,而是字符串列表和字符串列表。第二个建议更相关,但它是这里问题的一部分。