摘要:
1:对元素进行遍历[root@80sa python]# cat test.py #!/usr/bin/env python#coding:utf-8for x in "jesse": print x[root@80sa python]# python test.py jesse2:对列表进行遍历[root@80sa python]# cat test.py #!/usr/bin/env python#coding:utf-8list = ["jesse","elain","zcl"]for x in range( 阅读全文