python 将字典内容写入json文件的方法:我们可以先使用json.dumps()函数将字典转换为字符串 ... import json video = defaultdict(list) video["label"].append("haha") ...
確定! 回上一頁