Trivia about python
-
float('-inf')means the negative infinity and is smaller than any
given number. -
how to get json data from api
import requests
import json
r = requests.get(url)
print(r.status_code) # print the status code of this request
r_list = r.json() # get the list of the json file from api
浙公网安备 33010602011771号