def __sort_seed(self,anchor):
'''
排序规则
'''
list_nums = re.findall('\d*',anchor["number"])
number = https://www.idiancai.com/float(list_nums[0])
if '万' in anchor["number"]:
number = number * 10000
return number
def __show(self,anchors):
'''
展示数据,将已经排序好的数据打印出来
'''
for rank in range(0,len(anchors)):
print("第" + str(rank+1) +"名:" + anchors[rank]["number"] + "\t" + anchors[rank]["name"])