Skip to Content
Python 技術手冊 第三版
book

Python 技術手冊 第三版

by lex Martelli, Anna Martelli Ravenscroft, Steve Holden
January 2018
Intermediate to advanced content levelIntermediate to advanced
856 pages
17h 17m
Chinese
GoTop Information, Inc.
Content preview from Python 技術手冊 第三版
266
|
7 章 核心內建功能和標準程式庫模組
我們已經為
itertools
的許多屬性展示等效的產生器和 genexps,但重要
的是
itertools
型別所帶來的速度。舉個簡單的例子,考慮重複某個動作
10 次:
for _ in itertools.repeat(0, 10): pass
取決於 Python 發行版本和平台,這可能會比最直接的做法快了 10%
20%
for _ in range(10): pass
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

測試驅動開發|使用 Python

測試驅動開發|使用 Python

Harry J.W. Percival
Linux 内核观测技术BPF

Linux 内核观测技术BPF

David Calavera, Lorenzo Fontana

Publisher Resources

ISBN: 9789864766819