首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

python 两列表比较回来匹配列表

2012-07-03 
python 两列表比较返回匹配列表http://zh-cn.w3support.net/index.php?dbso&id1388818a select distin

python 两列表比较返回匹配列表
http://zh-cn.w3support.net/index.php?db=so&id=1388818

a = select distinct(expend_code) from webgame_expend_ratio order by expend_code;
b = select distinct(expend_code) from webgame_expend_category where create_at >='2011-08-31'and create_at < '2011-09-01' order by kxd;

def returnMatches(a,b)
       return list(set(a).intersection(set(b)))

热点排行