names =['zhangning','lsl','lyq','xww']
age = [1,2,3,4]
for a,b in zip(names,age):
print(a,b)
S = 'abcdefghijk'
for (index,char) in enumerate(S):
print (index,char) S = 'abcdefghijk'
for i in range(0,len(S),2):
print (S[i])
2024-04-04 08:30:29
names =['zhangning','lsl','lyq','xww']
age = [1,2,3,4]
for a,b in zip(names,age):
print(a,b)
S = 'abcdefghijk'
for (index,char) in enumerate(S):
print (index,char) S = 'abcdefghijk'
for i in range(0,len(S),2):
print (S[i])