#集合b=Set()" "1. Add Action Add2. Delete operation (Remove,discard,pop)3. Empty (Clear)4. Intersection &, and set |, difference set-, symmetric difference ^, subset (included) <=, parent set (inclusive) >=" "#队列import Queue" "A=queue. Queue () Queue.qsize () returns the size of Queue.empty () if the queue is empty, returns true if the queue is full, and returns True if the queues are filled, and vice versa falsequeue.full with the Falsequeue.full MaxSize size corresponds to Queue.put (item) write queue, timeout wait time" "#双端队列 fromCollections Import Deque" "1. A=deque ([]) #创建一个空的双队列2. A.append (n) #从右边像队列中增加元素, n indicates the added element3. A.appendleft (n) #从左边像队列中增加元素, n indicates the added element4. A.clear () #清空队列5. A.count (n) #在队列中统计元素的个数, n represents the element of the statistic6. A.extend (n) #从右边扩展队列, n represents the extended queue7. A.extendleft (n) #从左边扩展队列, n represents the extended queue8. A.pop () #从队列的右边删除元素 and returns the delete value9. A.popleft () #从队列的左边删除元素 and returns the delete valueTen. A.remove (n) #从队列中删除指定的值 One. A.reverse () #翻转队列 A. A.rotate (n) #旋转队列, the default value is 1, rotation starts from the right, negative values are rotated on the left, n means starting from the first element of the queue, and n counting from 1" "
Python often forgets code query prerequisites!!!!!!!!