Skip to content

Instantly share code, notes, and snippets.

@codemee
Last active January 28, 2019 10:51
Show Gist options
  • Save codemee/9426cb198e13597d9943f1e4e5976e47 to your computer and use it in GitHub Desktop.
Save codemee/9426cb198e13597d9943f1e4e5976e47 to your computer and use it in GitHub Desktop.
res = urequests.get( # API 網址
"https://api.openweathermap.org/data/2.5/weather?" +
"q=" + "Taipei" + ",TW" + # 指定城市與國別
"&units=metric&lang=zh_tw&" + # 使用攝氏單位
"appid=" + # 以下填入註冊後取得的 API key
".....................")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment