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(
用户评论