1. 首页
  2. 数据库
  3. 其它
  4. api_requests:Sparta培训 pythonhttpAPIerquests 源码

api_requests:Sparta培训 pythonhttpAPIerquests 源码

上传者: 2021-04-20 15:36:07上传 ZIP文件 249.04KB 热度 10次
Python API API使用示例: import requests url = "http://api.postcodes.io/postcodes/" postcode = "e147le" url_arg = url + postcode print ( url_arg ) response = requests . get ( url_arg ) print ( response . status_code ) print ( " \n " ) # print(response.content) # print("\n") # print(response.headers + "\n") # print("\n") # print(response.history + "\n") # print("\n") # print(response.encoding.isdigit(
用户评论