非诚勿扰声明

2024-09-27 07:28:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试编写一个if语句,该语句不附加“id”“1062066”,但它不起作用

我的代码:

if not event['id'] in ['1062066']

JSON:

"id":1062066,
"number":9,
"name":"COASTAL MIDWEST TRANSPORT HANDICAP",
"startsAt":"2020-10-03T09:25:00+00:00",
"url":"https:\/\/www.odds.com.au\/horse-racing\/kalgoorlie\/race-9\/?date=2020-10-03",
"isAbandoned":false,
"resulted":false,
"results":null,
"meetingId":184543,
"regionIconUrl":"https:\/\/puntcdn.com\/flags\/@2x\/AU@2x.png",
"regionName":"Australia"

Tags: 代码nameinhttpscomeventidjson

热门问题