for循环

for循环---->用户按照顺序循环

for temp in li :
    print(temp)

dic = {
    'apple':10,
    'iphne':5000,
    'watch':30000,

}
for i in dic :
    print(i,dic[i])

msg = {'a','b', 'c'}
for i in range(len(msg)):
    print(i)
原文地址:https://www.cnblogs.com/zhaoyunlong/p/8618339.html