You're not capturing the return value from the call inside the else
statement, so matches
remains empty.
else:
matches = match_player_names(input_name, player_dict=get_player_dict())
or simply
else:
return match_player_names(input_name, player_dict=get_player_dict())
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…