Files
python/pythonProject/数据类型/列表/添加/append.py
T
2025-12-08 17:24:23 +08:00

5 lines
103 B
Python

c = [1,2,3,'1',True,2.1]
# 向列表中加入对象
c.append('henchman')
c.append('henchman1')
print(c)