使用 append() 函式在Python 列表中追加單個元素 ... pythonCopy lst=[2,4,6,'python'] lst.append(6) print("The appended list is:",lst).
確定! 回上一頁