数字、字典、map

列表list:[]里的元素类型可以不一样

数组array:[]里的元素类型必须一样,通过索引取值

字典:通过key值取value

map:

eg:集合中的列表

{

    "code": 200,

    "timestramp": 1655607489086,

    "data": {

        "1": [

            {

                "carrier": "CA",

                "flightNo": "0010",

                "departureDatetime": "2022-05-21 17:00:00",

                "arrivalDatetime": "2022-05-21 18:00:00",

                "departure": "北京",

                "arrival": "上海",

                "seatF": 5,

                "amountF": 2000.0,

                "seatC": 5,

                "amountC": 1500.0,

                "seatY": 5,

                "amountY": 1000.0

            },

            {

                "carrier": "MU",

                "flightNo": "0021",

                "departureDatetime": "2022-05-21 17:30:00",

                "arrivalDatetime": "2022-05-21 18:40:00",

                "departure": "北京",

                "arrival": "上海",

                "seatF": 10,

                "amountF": 1500.0,

                "seatC": 5,

                "amountC": 1320.0,

                "seatY": 3,

                "amountY": 820.0

            },

            {

                "carrier": "3U",

                "flightNo": "0040",

                "departureDatetime": "2022-05-21 15:00:00",

                "arrivalDatetime": "2022-05-21 17:00:00",

                "departure": "北京",

                "arrival": "上海",

                "seatF": 8,

                "amountF": 1720.0,

                "seatC": 9,

                "amountC": 1320.0,

                "seatY": 10,

                "amountY": 900.0

            },

            {

                "carrier": "3U",

                "flightNo": "0050",

                "departureDatetime": "2022-05-21 08:10:00",

                "arrivalDatetime": "2022-05-21 10:00:00",

                "departure": "北京",

                "arrival": "上海",

                "seatF": 5,

                "amountF": 1720.0,

                "seatC": 0,

                "amountC": 1320.0,

                "seatY": 0,

                "amountY": 900.0

            }

        ],

        "2": []

    },

    "time": "2022-06-19 10:58:09",

    "message": "成功"

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值