美文网首页
Python 11 Programming Tutorial

Python 11 Programming Tutorial

作者: 豆表示低调 | 来源:发表于2016-08-30 14:36 被阅读0次
numbersTaken = [2, 5, 12, 13, 17]

print("Here are the numbers that are still available:")

for n in range(1, 20):
    if n in numbersTaken:
        continue  # skip anything after this and go to the next repetition 
    print(n)

相关文章

网友评论

      本文标题:Python 11 Programming Tutorial

      本文链接:https://www.haomeiwen.com/subject/cyaxettx.html