mirror of
https://github.com/wd210010/only_for_happly.git
synced 2026-11-06 04:36:44 +08:00
12 lines
159 B
Python
12 lines
159 B
Python
import requests
|
|
|
|
city_code = '101210404'
|
|
|
|
r = requests.get(
|
|
f"http://t.weather.itboy.net/api/weather/city/{city_code}"
|
|
)
|
|
|
|
result2 = r.text
|
|
|
|
print(result2)
|