先安装模块pip install jsonpath 用法:jsonpath.jsonpath(data,'$..key') 转载于:https://www.cnblogs.com/mihoutao/p/10942863.html