文件名称:api_requests:Sparta培训-python,http,API,erquests
文件大小:249KB
文件格式:ZIP
更新时间:2024-04-19 23:03:52
Python
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(
【文件预览】:
api_requests-main
----python(0B)
----APIs.png(153KB)
----.gitignore(51B)
----task()
--------city_list.json(944KB)
--------weather.py(2KB)
--------README.md(3KB)
----README.md(805B)
----pithon_api_with_postcode.py(778B)