-
Notifications
You must be signed in to change notification settings - Fork 0
/
找大数.py
13 lines (12 loc) · 15.8 KB
/
找大数.py
1
2
3
4
5
6
7
8
9
10
11
12
13
import re
# f = open("pathlist.txt", "rt", encoding="utf-8")
# path = f.readline()
content = "{'players': [{'account_id': 250733860, 'player_slot': 0, 'hero_id': 97, 'item_0': 63, 'item_1': 1, 'item_2': 141, 'item_3': 252, 'item_4': 116, 'item_5': 299, 'backpack_0': 0, 'backpack_1': 0, 'backpack_2': 0, 'item_neutral': 0, 'kills': 6, 'deaths': 3, 'assists': 7, 'leaver_status': 0, 'last_hits': 355, 'denies': 9, 'gold_per_min': 534, 'xp_per_min': 665, 'level': 24, 'hero_damage': 22623, 'tower_damage': 2859, 'hero_healing': 0, 'gold': 750, 'gold_spent': 18590, 'scaled_hero_damage': 12263, 'scaled_tower_damage': 1694, 'scaled_hero_healing': 0, 'ability_upgrades': [{'ability': 5519, 'time': 975, 'level': 1}, {'ability': 5518, 'time': 1056, 'level': 2}, {'ability': 5519, 'time': 1100, 'level': 3}, {'ability': 5520, 'time': 1171, 'level': 4}, {'ability': 5519, 'time': 1242, 'level': 5}, {'ability': 5519, 'time': 1387, 'level': 6}, {'ability': 5521, 'time': 1450, 'level': 7}, {'ability': 5520, 'time': 1450, 'level': 8}, {'ability': 5520, 'time': 1516, 'level': 9}, {'ability': 6016, 'time': 1580, 'level': 10}, {'ability': 5520, 'time': 1626, 'level': 11}, {'ability': 5518, 'time': 1716, 'level': 12}, {'ability': 5521, 'time': 1767, 'level': 13}, {'ability': 5518, 'time': 1882, 'level': 14}, {'ability': 5928, 'time': 1972, 'level': 15}, {'ability': 5518, 'time': 2024, 'level': 16}, {'ability': 5521, 'time': 2333, 'level': 17}, {'ability': 6507, 'time': 2530, 'level': 18}]}, {'account_id': 128367019, 'player_slot': 1, 'hero_id': 16, 'item_0': 108, 'item_1': 214, 'item_2': 1, 'item_3': 100, 'item_4': 0, 'item_5': 298, 'backpack_0': 0, 'backpack_1': 39, 'backpack_2': 0, 'item_neutral': 0, 'kills': 3, 'deaths': 3, 'assists': 9, 'leaver_status': 0, 'last_hits': 190, 'denies': 1, 'gold_per_min': 353, 'xp_per_min': 505, 'level': 21, 'hero_damage': 22577, 'tower_damage': 0, 'hero_healing': 800, 'gold': 962, 'gold_spent': 12890, 'scaled_hero_damage': 10854, 'scaled_tower_damage': 0, 'scaled_hero_healing': 250, 'ability_upgrades': [{'ability': 5103, 'time': 1043, 'level': 1}, {'ability': 5102, 'time': 1115, 'level': 2}, {'ability': 5103, 'time': 1187, 'level': 3}, {'ability': 5104, 'time': 1256, 'level': 4}, {'ability': 5103, 'time': 1298, 'level': 5}, {'ability': 5102, 'time': 1386, 'level': 6}, {'ability': 5103, 'time': 1518, 'level': 7}, {'ability': 5102, 'time': 1618, 'level': 8}, {'ability': 5105, 'time': 1654, 'level': 9}, {'ability': 5102, 'time': 1785, 'level': 10}, {'ability': 5959, 'time': 1921, 'level': 11}, {'ability': 5105, 'time': 2011, 'level': 12}, {'ability': 5104, 'time': 2140, 'level': 13}, {'ability': 5104, 'time': 2228, 'level': 14}, {'ability': 6409, 'time': 2360, 'level': 15}, {'ability': 5104, 'time': 2421, 'level': 16}, {'ability': 5105, 'time': 2719, 'level': 17}, {'ability': 6207, 'time': 3068, 'level': 18}]}, {'account_id': 151625242, 'player_slot': 2, 'hero_id': 4, 'item_0': 158, 'item_1': 185, 'item_2': 244, 'item_3': 50, 'item_4': 36, 'item_5': 116, 'backpack_0': 38, 'backpack_1': 0, 'backpack_2': 0, 'item_neutral': 0, 'kills': 4, 'deaths': 6, 'assists': 8, 'leaver_status': 0, 'last_hits': 316, 'denies': 8, 'gold_per_min': 479, 'xp_per_min': 556, 'level': 22, 'hero_damage': 25414, 'tower_damage': 885, 'hero_healing': 0, 'gold': 609, 'gold_spent': 15925, 'scaled_hero_damage': 12754, 'scaled_tower_damage': 560, 'scaled_hero_healing': 0, 'ability_upgrades': [{'ability': 5016, 'time': 923, 'level': 1}, {'ability': 5017, 'time': 1094, 'level': 2}, {'ability': 5016, 'time': 1145, 'level': 3}, {'ability': 5017, 'time': 1289, 'level': 4}, {'ability': 5016, 'time': 1370, 'level': 5}, {'ability': 5018, 'time': 1477, 'level': 6}, {'ability': 5016, 'time': 1566, 'level': 7}, {'ability': 5015, 'time': 1667, 'level': 8}, {'ability': 5017, 'time': 1744, 'level': 9}, {'ability': 5933, 'time': 1808, 'level': 10}, {'ability': 5017, 'time': 1901, 'level': 11}, {'ability': 5018, 'time': 2012, 'level': 12}, {'ability': 5015, 'time': 2048, 'level': 13}, {'ability': 5015, 'time': 2142, 'level': 14}, {'ability': 6311, 'time': 2212, 'level': 15}, {'ability': 5015, 'time': 2318, 'level': 16}, {'ability': 5018, 'time': 2529, 'level': 17}, {'ability': 6357, 'time': 2792, 'level': 18}]}, {'account_id': 118559150, 'player_slot': 3, 'hero_id': 7, 'item_0': 1, 'item_1': 102, 'item_2': 244, 'item_3': 214, 'item_4': 357, 'item_5': 40, 'backpack_0': 188, 'backpack_1': 355, 'backpack_2': 0, 'item_neutral': 0, 'kills': 1, 'deaths': 3, 'assists': 13, 'leaver_status': 0, 'last_hits': 50, 'denies': 3, 'gold_per_min': 199, 'xp_per_min': 335, 'level': 16, 'hero_damage': 11459, 'tower_damage': 365, 'hero_healing': 0, 'gold': 990, 'gold_spent': 6940, 'scaled_hero_damage': 5784, 'scaled_tower_damage': 161, 'scaled_hero_healing': 0, 'ability_upgrades': [{'ability': 5023, 'time': 951, 'level': 1}, {'ability': 5024, 'time': 1102, 'level': 2}, {'ability': 5025, 'time': 1416, 'level': 3}, {'ability': 5023, 'time': 1636, 'level': 4}, {'ability': 5025, 'time': 1637, 'level': 5}, {'ability': 5026, 'time': 1743, 'level': 6}, {'ability': 5025, 'time': 1875, 'level': 7}, {'ability': 5025, 'time': 2011, 'level': 8}, {'ability': 5023, 'time': 2137, 'level': 9}, {'ability': 6006, 'time': 2206, 'level': 10}, {'ability': 5023, 'time': 2232, 'level': 11}, {'ability': 5026, 'time': 2246, 'level': 12}, {'ability': 5024, 'time': 2361, 'level': 13}, {'ability': 5024, 'time': 2581, 'level': 14}, {'ability': 6141, 'time': 2806, 'level': 15}, {'ability': 5024, 'time': 2975, 'level': 16}]}, {'account_id': 179977281, 'player_slot': 4, 'hero_id': 121, 'item_0': 336, 'item_1': 214, 'item_2': 102, 'item_3': 218, 'item_4': 290, 'item_5': 304, 'backpack_0': 38, 'backpack_1': 356, 'backpack_2': 34, 'item_neutral': 0, 'kills': 3, 'deaths': 7, 'assists': 7, 'leaver_status': 0, 'last_hits': 52, 'denies': 0, 'gold_per_min': 278, 'xp_per_min': 281, 'level': 15, 'hero_damage': 7129, 'tower_damage': 0, 'hero_healing': 800, 'gold': 2395, 'gold_spent': 8170, 'scaled_hero_damage': 5148, 'scaled_tower_damage': 0, 'scaled_hero_healing': 618, 'ability_upgrades': [{'ability': 8000, 'time': 936, 'level': 1}, {'ability': 8007, 'time': 1095, 'level': 2}, {'ability': 8000, 'time': 1220, 'level': 3}, {'ability': 8007, 'time': 1435, 'level': 4}, {'ability': 8000, 'time': 1613, 'level': 5}, {'ability': 6491, 'time': 1722, 'level': 6}, {'ability': 8006, 'time': 1921, 'level': 7}, {'ability': 8006, 'time': 2148, 'level': 8}, {'ability': 8006, 'time': 2228, 'level': 9}, {'ability': 6007, 'time': 2542, 'level': 10}, {'ability': 8006, 'time': 2743, 'level': 11}, {'ability': 6491, 'time': 2824, 'level': 12}, {'ability': 8000, 'time': 2869, 'level': 13}, {'ability': 8007, 'time': 3023, 'level': 14}, {'ability': 6197, 'time': 3240, 'level': 15}]}, {'account_id': 372022646, 'player_slot': 128, 'hero_id': 13, 'item_0': 190, 'item_1': 36, 'item_2': 1, 'item_3': 108, 'item_4': 38, 'item_5': 48, 'backpack_0': 188, 'backpack_1': 0, 'backpack_2': 0, 'item_neutral': 0, 'kills': 3, 'deaths': 5, 'assists': 13, 'leaver_status': 0, 'last_hits': 158, 'denies': 14, 'gold_per_min': 391, 'xp_per_min': 547, 'level': 21, 'hero_damage': 16315, 'tower_damage': 304, 'hero_healing': 385, 'gold': 643, 'gold_spent': 14765, 'scaled_hero_damage': 9973, 'scaled_tower_damage': 114, 'scaled_hero_healing': 192, 'ability_upgrades': [{'ability': 5069, 'time': 916, 'level': 1}, {'ability': 5072, 'time': 1116, 'level': 2}, {'ability': 5071, 'time': 1202, 'level': 3}, {'ability': 5071, 'time': 1339, 'level': 4}, {'ability': 5071, 'time': 1514, 'level': 5}, {'ability': 5073, 'time': 1611, 'level': 6}, {'ability': 5071, 'time': 1627, 'level': 7}, {'ability': 5069, 'time': 1749, 'level': 8}, {'ability': 5069, 'time': 1869, 'level': 9}, {'ability': 5069, 'time': 1975, 'level': 10}, {'ability': 6114, 'time': 2101, 'level': 11}, {'ability': 5073, 'time': 2206, 'level': 12}, {'ability': 5072, 'time': 2314, 'level': 13}, {'ability': 5072, 'time': 2585, 'level': 14}, {'ability': 6055, 'time': 2690, 'level': 15}, {'ability': 5072, 'time': 2730, 'level': 16}, {'ability': 5073, 'time': 2866, 'level': 17}, {'ability': 6402, 'time': 3176, 'level': 18}]}, {'account_id': 140411011, 'player_slot': 129, 'hero_id': 91, 'item_0': 36, 'item_1': 218, 'item_2': 359, 'item_3': 349, 'item_4': 0, 'item_5': 231, 'backpack_0': 0, 'backpack_1': 0, 'backpack_2': 0, 'item_neutral': 0, 'kills': 0, 'deaths': 3, 'assists': 11, 'leaver_status': 0, 'last_hits': 35, 'denies': 3, 'gold_per_min': 246, 'xp_per_min': 392, 'level': 18, 'hero_damage': 3382, 'tower_damage': 333, 'hero_healing': 13558, 'gold': 940, 'gold_spent': 8210, 'scaled_hero_damage': 2859, 'scaled_tower_damage': 127, 'scaled_hero_healing': 3404, 'ability_upgrades': [{'ability': 5485, 'time': 919, 'level': 1}, {'ability': 5487, 'time': 1149, 'level': 2}, {'ability': 5485, 'time': 1299, 'level': 3}, {'ability': 5487, 'time': 1429, 'level': 4}, {'ability': 5485, 'time': 1588, 'level': 5}, {'ability': 5488, 'time': 1636, 'level': 6}, {'ability': 5487, 'time': 1811, 'level': 7}, {'ability': 5487, 'time': 1966, 'level': 8}, {'ability': 5486, 'time': 2103, 'level': 9}, {'ability': 5910, 'time': 2207, 'level': 10}, {'ability': 5486, 'time': 2254, 'level': 11}, {'ability': 5488, 'time': 2354, 'level': 12}, {'ability': 5486, 'time': 2519, 'level': 13}, {'ability': 5490, 'time': 2798, 'level': 14}, {'ability': 6008, 'time': 2860, 'level': 15}, {'ability': 5485, 'time': 2988, 'level': 16}, {'ability': 5488, 'time': 3233, 'level': 17}]}, {'account_id': 87113040, 'player_slot': 130, 'hero_id': 104, 'item_0': 309, 'item_1': 1, 'item_2': 127, 'item_3': 50, 'item_4': 152, 'item_5': 116, 'backpack_0': 0, 'backpack_1': 0, 'backpack_2': 0, 'item_neutral': 358, 'kills': 12, 'deaths': 4, 'assists': 8, 'leaver_status': 0, 'last_hits': 184, 'denies': 7, 'gold_per_min': 496, 'xp_per_min': 578, 'level': 22, 'hero_damage': 25119, 'tower_damage': 6813, 'hero_healing': 1048, 'gold': 4505, 'gold_spent': 16880, 'scaled_hero_damage': 14954, 'scaled_tower_damage': 4259, 'scaled_hero_healing': 492, 'ability_upgrades': [{'ability': 5595, 'time': 1037, 'level': 1}, {'ability': 5597, 'time': 1082, 'level': 2}, {'ability': 5595, 'time': 1161, 'level': 3}, {'ability': 5596, 'time': 1248, 'level': 4}, {'ability': 5595, 'time': 1358, 'level': 5}, {'ability': 5598, 'time': 1486, 'level': 6}, {'ability': 5595, 'time': 1630, 'level': 7}, {'ability': 5597, 'time': 1685, 'level': 8}, {'ability': 5596, 'time': 1802, 'level': 9}, {'ability': 5982, 'time': 1954, 'level': 10}, {'ability': 5596, 'time': 2136, 'level': 11}, {'ability': 5598, 'time': 2240, 'level': 12}, {'ability': 5596, 'time': 2353, 'level': 13}, {'ability': 5597, 'time': 2555, 'level': 14}, {'ability': 5907, 'time': 2698, 'level': 15}, {'ability': 5597, 'time': 2729, 'level': 16}, {'ability': 5598, 'time': 2872, 'level': 17}, {'ability': 6077, 'time': 3059, 'level': 18}]}, {'account_id': 153727297, 'player_slot': 131, 'hero_id': 93, 'item_0': 376, 'item_1': 174, 'item_2': 156, 'item_3': 108, 'item_4': 63, 'item_5': 116, 'backpack_0': 356, 'backpack_1': 212, 'backpack_2': 0, 'item_neutral': 0, 'kills': 2, 'deaths': 2, 'assists': 10, 'leaver_status': 0, 'last_hits': 349, 'denies': 28, 'gold_per_min': 553, 'xp_per_min': 658, 'level': 23, 'hero_damage': 15028, 'tower_damage': 6581, 'hero_healing': 0, 'gold': 2250, 'gold_spent': 19390, 'scaled_hero_damage': 8573, 'scaled_tower_damage': 3125, 'scaled_hero_healing': 0, 'ability_upgrades': [{'ability': 5496, 'time': 962, 'level': 1}, {'ability': 5495, 'time': 1110, 'level': 2}, {'ability': 5494, 'time': 1191, 'level': 3}, {'ability': 5494, 'time': 1287, 'level': 4}, {'ability': 5494, 'time': 1342, 'level': 5}, {'ability': 5497, 'time': 1416, 'level': 6}, {'ability': 5494, 'time': 1513, 'level': 7}, {'ability': 5496, 'time': 1593, 'level': 8}, {'ability': 5495, 'time': 1662, 'level': 9}, {'ability': 6137, 'time': 1723, 'level': 10}, {'ability': 5495, 'time': 1841, 'level': 11}, {'ability': 5497, 'time': 1924, 'level': 12}, {'ability': 5495, 'time': 1968, 'level': 13}, {'ability': 5496, 'time': 2201, 'level': 14}, {'ability': 5907, 'time': 2333, 'level': 15}, {'ability': 5496, 'time': 2491, 'level': 16}, {'ability': 5497, 'time': 2795, 'level': 17}, {'ability': 6892, 'time': 2996, 'level': 18}]}, {'account_id': 836645054, 'player_slot': 132, 'hero_id': 74, 'item_0': 306, 'item_1': 267, 'item_2': 36, 'item_3': 229, 'item_4': 361, 'item_5': 50, 'backpack_0': 40, 'backpack_1': 0, 'backpack_2': 0, 'item_neutral': 0, 'kills': 4, 'deaths': 3, 'assists': 7, 'leaver_status': 0, 'last_hits': 182, 'denies': 11, 'gold_per_min': 387, 'xp_per_min': 530, 'level': 21, 'hero_damage': 15902, 'tower_damage': 1449, 'hero_healing': 0, 'gold': 4311, 'gold_spent': 10175, 'scaled_hero_damage': 8652, 'scaled_tower_damage': 707, 'scaled_hero_healing': 0, 'ability_upgrades': [{'ability': 5370, 'time': 951, 'level': 1}, {'ability': 5371, 'time': 1063, 'level': 2}, {'ability': 5370, 'time': 1116, 'level': 3}, {'ability': 5371, 'time': 1176, 'level': 4}, {'ability': 5370, 'time': 1258, 'level': 5}, {'ability': 5371, 'time': 1346, 'level': 6}, {'ability': 5371, 'time': 1401, 'level': 7}, {'ability': 5370, 'time': 1490, 'level': 8}, {'ability': 5371, 'time': 1602, 'level': 9}, {'ability': 5370, 'time': 1693, 'level': 10}, {'ability': 5371, 'time': 1789, 'level': 11}, {'ability': 5372, 'time': 1992, 'level': 12}, {'ability': 5371, 'time': 2137, 'level': 13}, {'ability': 7390, 'time': 2262, 'level': 14}, {'ability': 7148, 'time': 2439, 'level': 15}, {'ability': 5372, 'time': 2632, 'level': 16}, {'ability': 5372, 'time': 2853, 'level': 17}, {'ability': 5372, 'time': 2903, 'level': 18}, {'ability': 5372, 'time': 3039, 'level': 19}, {'ability': 5372, 'time': 3160, 'level': 20}, {'ability': 5372, 'time': 3221, 'level': 21}]}], 'radiant_win': False, 'duration': 2284, 'pre_game_duration': 90, 'start_time': 1579782867, 'match_id': 5208178948, 'match_seq_num': 4370381497, 'tower_status_radiant': 262, 'tower_status_dire': 1972, 'barracks_status_radiant': 55, 'barracks_status_dire': 63, 'cluster': 151, 'first_blood_time': 117, 'lobby_type': 1, 'human_players': 10, 'leagueid': 11602, 'positive_votes': 8, 'negative_votes': 6, 'game_mode': 2, 'flags': 0, 'engine': 1, 'radiant_score': 17, 'dire_score': 22, 'radiant_team_id': 7654125, 'radiant_name': 'Kel +4 Daud', 'radiant_logo': 18446744073709551615, 'radiant_team_complete': 0, 'dire_team_id': 7421168, 'dire_name': 'NGID M11', 'dire_logo': 795379055473814713, 'dire_team_complete': 1, 'radiant_captain': 250733860, 'dire_captain': 372022646, 'picks_bans': [{'is_pick': False, 'hero_id': 69, 'team': 0, 'order': 0}, {'is_pick': False, 'hero_id': 15, 'team': 1, 'order': 1}, {'is_pick': False, 'hero_id': 83, 'team': 0, 'order': 2}, {'is_pick': False, 'hero_id': 19, 'team': 1, 'order': 3}, {'is_pick': False, 'hero_id': 31, 'team': 0, 'order': 4}, {'is_pick': False, 'hero_id': 98, 'team': 1, 'order': 5}, {'is_pick': True, 'hero_id': 97, 'team': 0, 'order': 6}, {'is_pick': True, 'hero_id': 91, 'team': 1, 'order': 7}, {'is_pick': True, 'hero_id': 104, 'team': 1, 'order': 8}, {'is_pick': True, 'hero_id': 7, 'team': 0, 'order': 9}, {'is_pick': False, 'hero_id': 76, 'team': 0, 'order': 10}, {'is_pick': False, 'hero_id': 57, 'team': 1, 'order': 11}, {'is_pick': False, 'hero_id': 86, 'team': 0, 'order': 12}, {'is_pick': False, 'hero_id': 41, 'team': 1, 'order': 13}, {'is_pick': True, 'hero_id': 13, 'team': 1, 'order': 14}, {'is_pick': True, 'hero_id': 121, 'team': 0, 'order': 15}, {'is_pick': True, 'hero_id': 93, 'team': 1, 'order': 16}, {'is_pick': True, 'hero_id': 4, 'team': 0, 'order': 17}, {'is_pick': False, 'hero_id': 2, 'team': 1, 'order': 18}, {'is_pick': False, 'hero_id': 59, 'team': 0, 'order': 19}, {'is_pick': True, 'hero_id': 16, 'team': 0, 'order': 20}, {'is_pick': True, 'hero_id': 74, 'team': 1, 'order': 21}], '_id': ObjectId('5e37eee38f9852fbfe313bde')}"
# with open(r"D:\Dota2比赛数据\data\Matches_data20191212\matches_20191212230323.json", "rt", encoding="utf-8") as f1:
# content = f1.read()
# print(get_content())
f1=re.findall('(\d+)',content)
for i in f1:
k = int(i)
if k > 9223372036854775807:
print(k)