python for循环

for <variable> in <sequence>: 
    <statements>else: <statements>
address = ["home","company","office"]
for x in address:
     print(x);


遍历数组
遍历对象
遍历范围  for i in range(): else:
步长默认从0开始,步长唯1



遍历字符串



阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页