python 两列表比较回来匹配列表
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)))
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)))