标签:blog for div on log as python tt class
# coding=gbk LOL1 = [‘OMG‘, ‘EDG‘, ‘皇族‘] LOL2 = [‘韩国‘, ‘欧洲‘, ‘美国‘] for l1 in LOL1: for l2 in LOL2: print (l1+‘ VS ‘+l2)
l1每循环一次,l2 就会循环 3 次,这样,我们可以打印出一个全排列:
标签:blog for div on log as python tt class
原文地址:http://www.cnblogs.com/xiaoit/p/4042167.html