Files
python/pythonProject/数据类型/列表/添加/append.py
T
2026-04-29 10:20:46 +08:00

6 lines
141 B
Python

c = [1,2,3,'1',True,2.1]
# 向列表中加入对象 可以是任意类型
c.append('henchman')
c.append('henchman1')
c.append(['a'])
print(c)