Skip to content

Instantly share code, notes, and snippets.

@lexdene
Created August 21, 2013 07:28
Show Gist options
  • Save lexdene/6291311 to your computer and use it in GitHub Desktop.
Save lexdene/6291311 to your computer and use it in GitHub Desktop.
减少一个变量完成循环
for i in range(10):
print 'hello world'
# 能不能不产生新的变量 (此例中的i)
# 来完成循环10次的任务
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment