例一:for循环
for i in range(1,100): if i==23: print "great,%s you got your lucky number:" %(i) break else: print ‘the number is :‘,i
时间: 2024-08-08 22:05:36
例一:for循环
for i in range(1,100): if i==23: print "great,%s you got your lucky number:" %(i) break else: print ‘the number is :‘,i