Add docstring to example

This commit is contained in:
Thomas Wade 2020-04-21 16:30:30 +09:30
parent cf3676f461
commit 1664aa8010

View File

@ -8,6 +8,10 @@ from FAAPI import FAAPI
def download(url: str): def download(url: str):
"""
Downloads the file at the given URL.
@param url: URL of the file to download.
"""
print('Downloading ' + url) print('Downloading ' + url)
with open(url.split('/')[-1], 'wb') as file: with open(url.split('/')[-1], 'wb') as file:
res = requests.get(url) res = requests.get(url)