来自 @nedbat 的分享:
Ned Batchelder: Loop Like A Native
C样:
i = 0
while i < len(my_list):
v = my_list[i]
print v
i += 1
偏门:
for i in range(len(my_list)):
v = my_list[i]
print v
蠎样:
for v in my_list:
print …
And in the naked light I saw ten thousand people, maybe more.
People talking without speaking, people hearing without listening.
People writing songs that voices never shared, no one dared disturb the sound of silence.
--- The sound of silence 美利坚合众国,2015年,纽约.
Guido van Rossum on finding his way — Dropbox Makers — Medium
~ Python 缔造者,当前 Dropbox 工程师, 近期编程思考
Guido van Rossum 作为Python 的创造者,
以及 仁慈的独裁者
(又名 BDFL).
在此篇 …
mail
,github
or
gitlab
.
Tip me via
||
(ATOM)