- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
def count_dupes(serials):
dupes = {}
for item in serials:
if dupes.get(item):
dupes[item] = dupes.get(item) + 1
else:
dupes[item] = 1
return dupes
factory = Functions.get_factory()
for serial in dupes:
for row in factory:
if serial == row['serial']:
result[serial] = row
keys = row.keys()
for key in keys:
if not row[key] == 0:
print(key, row[key])
guest6 22.02.2022 14:57 # 0
Floating_cockerel 22.02.2022 15:02 # 0
666_N33D135 22.02.2022 17:02 # 0
MasterJoda 22.02.2022 17:02 # 0
guest6 22.02.2022 17:05 # 0
ISO 22.02.2022 19:25 # +1
ISO 22.02.2022 21:30 # +1
666_N33D135 22.02.2022 22:01 # 0
KaBauHblu_nemyx 22.02.2022 22:02 # 0
guest6 22.02.2022 22:12 # 0
Очень жалко, хороший поэт
ISO 22.02.2022 22:17 # 0
ISO 22.02.2022 22:17 # 0
666_N33D135 22.02.2022 22:38 # 0
Vindicar 24.02.2022 16:32 # 0
- dupes = collections.defaultdict(lambda: 0)
- dupes[item] += 1
+ dupes = collections.Counter(serials)
bormand 24.02.2022 21:11 # +1
Fike 24.02.2022 21:32 # 0
Vindicar 25.02.2022 10:52 # 0
ObeseYoung 25.02.2022 11:14 # 0
Fike 25.02.2022 11:35 # 0
ObeseYoung 25.02.2022 11:44 # 0
Sciti 25.02.2022 16:45 # 0
bormand 25.02.2022 16:47 # 0
Могли бы сделать на самом деле.
DaveMustAim 25.02.2022 17:48 # 0
Stallman 22.02.2022 21:11 # 0
guest6 22.02.2022 21:11 # +1
> dupes[item] = dupes.get(item) + 1
ISO 22.02.2022 21:27 # 0
666_N33D135 22.02.2022 21:42 # 0