10 lines
239 B
Python
10 lines
239 B
Python
import requests
|
|
|
|
appId = "PYP3W4X4J8"
|
|
input = "The population of China"
|
|
url = f"http://api.wolframalpha.com/v2/query?appid={appId}&input={input}"
|
|
|
|
# 使用http request发起请求
|
|
response = requests.get(url)
|
|
print(response.text)
|