json_files = [pos_json for pos_json in os.listdir(path_to_json) if pos_json.endswith('.json')]
with open(os.path.join(path_to_json, js)) as json_file:
playlists = json.load(json_file
要声明一个带有值的只读字典,我们可以这样做: let dictionary1 = dict [ (1, "a"); (2, "b"); (3, "c") ] Try it online!现在,我想创建一个空字典。如何做到这一点呢?我正在寻找类似这样的东西: let dictionary1 = {} // <- ok this is js
let (stuff, dictionary2) = parseRec("w