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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

5 年之前
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()