双循环

来源:互联网 发布:centos上如何安装elk 编辑:程序博客网 时间:2024/05/08 17:27
#coding=utf-8type=('a','b')tp=('c','d')for ty in type:    #print ty+'ab'    for tss in tp:        #print ty        #print tss        print ty+tss

for            :

      语句1

   for       :

         语句2

注意语句1、2的差别。

0 0
原创粉丝点击