遍历2023-02-10到2023-04-09生成json数据,json数据的属性包括cost,retail,store,stock,sold,day,其中day为日期类型,cost,retail,store为双精度浮点型,stock,sold为数值类型
时间: 2023-03-02 08:35:25 浏览: 106
以下是生成的JSON数据,其中每一项代表从2023年2月10日到4月9日每一天的数据,共59项:
```json
[
{
"cost": 14.12,
"retail": 19.99,
"store": 1.0,
"stock": 38,
"sold": 12,
"day": "2023-02-10"
},
{
"cost": 14.67,
"retail": 19.99,
"store": 1.0,
"stock": 25,
"sold": 15,
"day": "2023-02-11"
},
{
"cost": 14.21,
"retail": 19.99,
"store": 1.0,
"stock": 18,
"sold": 7,
"day": "2023-02-12"
},
{
"cost": 14.89,
"retail": 19.99,
"store": 1.0,
"stock": 23,
"sold": 12,
"day": "2023-02-13"
},
{
"cost": 14.64,
"retail": 19.99,
"store": 1.0,
"stock": 31,
"sold": 7,
"day": "2023-02-14"
},
{
"cost": 14.19,
"retail": 19.99,
"store": 1.0,
"stock": 28,
"sold": 10,
"day": "2023-02-15"
},
{
"cost": 14.57,
"retail": 19.99,
"store": 1.0,
"stock": 22,
"sold": 18,
"day": "2023-02-16"
},
{
"cost": 14.65,
"retail": 19.99,
"store": 1.0,
"stock": 14,
"sold": 11,
"day": "2023-02-17"
},
{
"cost": 14.92,
"retail": 19.99,
"store": 1.0,
"stock": 12,
"sold": 7,
"day": "2023-02-18"
},
{
"cost": 14.66,
"retail": 19.99,
"store": 1.0,
"stock": 11,
"sold": 9,
"day": "2023-02-19"
},
{
"cost": 14.23,
"retail": 19.99,
"store": 1.0,
"stock": 24,
"sold": 16,
"day": "2023-02-20"
},
{
"cost": 14.58,
"retail": 19.99,
"store": 1.0,
"stock": 16,
"sold": 14,
"day": "2023-02-21"
},
{
"cost": 14.27,
"retail": 19.99,
"store": 1.0,
阅读全文