我有listA和listB。我希望能够将 listB 附加到 listA。
我在使用extend关键字时遇到了一些问题。我不确定我是否以正确的方式使用它。
listA = ['1.2.4.4.5']
listB = ["this is the first", "this is the second"]
我希望能够有以下输出:
res = [1.2.4.4.5.["this is the first", "this is the second"]]
任何帮助,将不胜感激。
杨__羊羊
呼唤远方
相关分类