#Adds a single element to the end of the array.#將單個元素添加到數組的末尾。append(x)#將列表、數組或其他可迭代對象添加到數組的末尾。#Adds a list, array, or other iterable to the end of array.extend(iterable)#在給定的數組索引之前插入一個元素。#Inserts an element before the given index of the array.insert(i, x)
foreach
l = ['A']for i inrange(len(l)):#foreach with indexprint(l[i])# Afor s in l:#foreach contentprint(s)# A
組OR語句的好方法
or_query_list = ['OR條件1','OR條件2']for i inrange(len(or_query_list)): or_query_list[i]=f'fieldName={or_query_list[i]}'where_str =' OR '.join(or_query_list)