def relationship(): for id in TOP_100: not_foer = WeiboUser.get_top_not_pair(id) for foer in list(set(TOP_100)-set(not_foer)): WeiboUser.save_relationship(id, foer)