python的For语句循环怎么写?
提问人:杨紫红发布时间:2020-11-26
For语句(遍历序列的元素)
for item in [3, 4, 10, 25]:
print item
# Print characters one at a time
for c in "Hello World":
print c
# Loop over a range of numbers
for i in range(0,100,2):
print i
for i in range(len(list1)):
print list1[i]
继续查找其他问题的答案?
相关视频回答
回复(0)
点击加载更多评论>>