有两个列表:
list1= [
f'some text',
f'text2',
f'end of list',
]
list2 = [
'some text in list 2',
'other text'
]
我想形成一个总清单:
list1= [
f'some text',
'some text in list 2',
'other text',
f'text2',
f'end of list',
]
但
list1.insert(1, list2)
分发:
list1= [
f'some text',
[
'some text in list 2',
'other text'
],
f'text2',
f'end of list',
]
如何使用一个命令获得五行的总列表?
很简单
或者