# 总结:json里面,如果是字典dict={} 就用.name或者【name】来取值;人
# 如果是list(元祖)可以用索引取值
res0 = jsonpath(user_msg,"$.data.records[0]")
res1 = jsonpath(user_msg,"$.data.records[0].name")
res2 = jsonpath(user_msg,"$..records.[0:2]") # 求区间0、1
print(res0)
print(res1)
print(res2)