deque Demonstrated With Examples: Python's collections module: part 1

Veröffentlicht am: 21 August 2019
auf dem Kanal: Live Python
7,623
150

The collections module has specialised datatypes which are alternatives to Python's general purpose built-in containers. The deque, the double-ended queue is like a list but the main difference is that it has fast appends and fast pops at either end. This won't be a theory lesson and we'll be taking you first through deque's methods and then a series of examples culminating in a performance test of list versus deque.

Contents:
0:24 Basic usage
4:12 deque's are thread-safe
5:33 maxlen in action
6:38 deque versus list performance test


Auf dieser Seite können Sie das Online-Video deque Demonstrated With Examples: Python's collections module: part 1 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Live Python 21 August 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 7,623 Mal angesehen und es wurde von 150 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!