Python自学:第五章 动手试一试 4-3

# -*- coding: GBK -*-

numbers = ["1",'2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20']

for number in numbers:
    print(number)

输出为:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

 

posted @ 2019-05-14 08:11  Johnson蚂蚁  阅读(186)  评论(0编辑  收藏  举报