swsrl 发表于 2017-5-7 10:57:54

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)))
页: [1]
查看完整版本: python 两列表比较返回匹配列表