Created
August 21, 2013 07:28
-
-
Save lexdene/6291311 to your computer and use it in GitHub Desktop.
减少一个变量完成循环
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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