api_requests:Sparta培训 pythonhttpAPIerquests 源码
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.zip
(预估有个8文件)
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
暂无评论