kaitolucifer 最近的时间轴更新
kaitolucifer

kaitolucifer

V2EX 第 304402 号会员,加入于 2018-03-29 14:25:21 +08:00
kaitolucifer 最近回复了
2020-10-22 19:29:10 +08:00
回复了 JCZ2MkKb5S8ZX9pq 创建的主题 Python Python 多个列表相加怎么写
The issue of quadratic performance of sum(sequences, null_seq) is known, which is why the doc says that sum() is for numbers and recommends .join for strings and itertools.chain for other sequences.

上面那个 sum trick 貌似很慢?
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3215 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 00:38 · PVG 08:38 · LAX 16:38 · JFK 19:38
Developed with CodeLauncher
♥ Do have faith in what you're doing.