You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Deze repo is gearchiveerd. U kunt bestanden bekijken en het klonen, maar niet pushen of problemen/pull-requests openen.

numbers.py 266 B

5 jaren geleden
1234567891011121314
  1. import sys
  2. import urllib.request
  3. def main():
  4. number = sys.argv[1]
  5. with urllib.request.urlopen("http://numbersapi.com/" + number) as request:
  6. response = request.read().decode("utf-8")
  7. print(response)
  8. if __name__ == "__main__":
  9. main()