I got it, its work... However the code is too long.
lnk = soup.findAll('a', attrs={'class':['team_ls','lot_icon0'],
'href':re.compile('http://data.7m.cn/matches_data/92/en/index.shtml|http://data.7m.cn/analyse/en/')})
EngPR = soup.findAll('a', href=re.compile('http://data.7m.cn/matches_data/92/en/index.shtml'))
matchID = []
df = lnk
for i in range(len(lnk)):
if EngPR[0]['href'] == lnk[i]['href']:
# re.findall(r'.*?([0-9]+)', dflist[0])
# Out[162]: ['7', '473558']
# [-1] to delete the 1st matched digit which is http://data.'7'm.cn
df = re.findall(r'.*?([0-9]+)', lnk[i+1]['href'])[-1]
matchID.append(df)
del lnk; del EngPR; del df; del i