3
從官方文檔:爲什麼deque.extendleft()顛倒元素的順序?
extendleft(迭代器)
Extend the left side of the deque by appending elements from iterable. Note, the series of left appends results in reversing the order of elements in the iterable argument.
這背後有什麼方法的行爲的原因/概念?我知道我可以很容易地使用reversed
來改變它,但我只是好奇。