Skip to main content
 首页 » 编程设计

python之在 Python 的子列表中连接列表和数字

2025年05月04日14haluo1

<分区>

如何连接这样的列表:

buttons = [[['a','b','c'], '2'], [['d','e','f'], '3']] 

进入

buttons = [[['a','b','c','2'], ['d','e','f','3']]] 

我尝试访问三个索引并连接但没有成功:

buttons[0][1]