Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Deque- queues at both ends, keeping only the specified n elements

Shulou Source: shulou.com Published: 2022-06-01 07:25:01 11月26日 Update

From collections import dequeq = deque (maxlen=5) for x in range (10): q.append (x) Q

Maxlen: retains elements of specified length

Tags: Element length Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno vpn Shulou Tech Info Xiaomi NVidia