# nums1 = [1,2,3,4, ['a','b','c','d'] ] #2维数组
# nums2 = [1,2,3,4,['a','b','c','d',['test','dev','pre']]] #3维数组
# print(nums2[4][4][1])
stus = ['chengweiliang','chenqi','guoliwen']
for stu in stus:#for循环直接循环一个list,就是取list里面的每一个元素
print('每次循环取的值',stu)
username = 'szz-'+stu
print(username)
# for i in range(len(stus)): #b
# username = stus[i]
# print(username)
l = list(range(3))
print(l)
# username=''
# sql='insert into user (username,password) value ("%s","%s");'%(username,password)
# password='123456'
# index = 0
# while index<len(stus):
# username = stus[index]
# username = 'szz-'+username
# sql='insert into user (username,password) value ("%s","%s");'%(username,password)
# print(sql)
# index+=1