requests url = response = requests.get(url) result = response.json()
您好读者!请参照书中源码进行编写,12306后台新添加了Cookie验证,所以需要读者在请求时添加Cookie!