Python list merged into dict

list
ks = ["","","","","aaa","bbb","aa","bb"]
fz = ["","","",""]
:
result = {"": ["", "aa"]}, "": ["", "bbb"], "": ["", "bb"], "": ["", "aaa"]}

?

====================================================
:

-sharpencoding=utf-8
import json
d = {}
ks = ["","","","","aaa","bbb","aa","bb"]
fz = ["","","",""]


kk = []
for key in ks:
    for fenzu in fz:
        if fenzu in key:
            print fenzu,key
            kk.append({fenzu:key})


dic = {}
for _ in kk:
    for k, v in _.items():
        dic.setdefault(k, []).append(v)

print json.dumps([{k:v} for k, v in dic.items()], ensure_ascii=False)
May.17,2022

ks = ['', '', '', '', 'aaa', 'bbb', 'aa', 'bb']
fz = ['', '', '', '']

d = {k: [v for v in ks if k in v] for k in fz}
print d
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3719a-2c095.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3719a-2c095.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?