【发布时间】:2015-05-20 14:02:28
【问题描述】:
我刚学python,不明白为什么下面的简单代码不起作用:
while True:
try:
print "Counter 1: %(counter)"
counter += 1
if counter > 15:
break
【问题讨论】:
-
您的
try不需要except或finally块吗?
标签: python python-2.7 eof