python中list类型数据
python中xpth方法返回的数据类型为list
python种向list类型数据中添加元素的方法:
list.append("xxx")
list = list + ["xxx"]
list列表元素拼接:
list1.join(list2)
两个列表合并:
list1.extend(list2)
判断列表是否为空
1.
a = []
if a: COMMAND2.
a = []
if a is not None: COMMAND
python中xpth方法返回的数据类型为list
python种向list类型数据中添加元素的方法:
list.append("xxx")
list = list + ["xxx"]
list列表元素拼接:
list1.join(list2)
两个列表合并:
list1.extend(list2)
判断列表是否为空
1.
a = []
if a: COMMANDa = []
if a is not None: COMMAND