コード例 #1
0
def download_cats(folder):
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = "lolcat_{}".format(i)
        cat_service.get_cat(folder, name)
        print("Downloaded {}".format(name))
    print("Download complete.")
コード例 #2
0
def download_cats(folder):
    print('contacting server to download cats...')
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = 'lolcat_{}'.format(i)
        print('Downloading cat ' + name)
        cat_service.get_cat(folder, name)
コード例 #3
0
ファイル: program.py プロジェクト: hotpepper/jumpstart
def download_cats(folder):
    print ('Downloading cats...')
    cat_count = 8
    for i in range(1, cat_count+1):
        name = 'lolcat_{}'.format(i)
        print ('downloading cat {}'.format(name))
        cat_service.get_cat(folder, name)
コード例 #4
0
def download_cats(folder):
    # we're gonna get 8 cats
    cat_count = 8
    for i in range(1, cat_count+1):
        # cat name will be index num
        name = 'lolcat_{}'.format(i)
        cat_service.get_cat(folder, name)
コード例 #5
0
def download_cats(folder):
    print('Contacting cat server')
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = "lolcat {}".format(i)  # name the lolcat file
        print('Getting cat {}'.format(name))
        cat_service.get_cat(folder, name)  # call get_cat(pass folder and name)
コード例 #6
0
ファイル: program.py プロジェクト: bcochrane/pythonjumpstart
def download_cats(folder):
    cat_count = 1
    print(f'Downloading {cat_count} cats into {folder}...')
    for i in range(1, cat_count + 1):
        name = f'lolcat_{i}'
        print(f'Download cat {name}...')
        cat_service.get_cat(folder, name)
コード例 #7
0
def download_cats(folder):
    print('contacting cat server...')
    cat_count = 8

    for i in range(1, cat_count + 1):
        name = 'lolcat_{}'.format(i)
        cat_service.get_cat(folder, name)
コード例 #8
0
ファイル: program.py プロジェクト: jonolsu/classwork
def download_cats(folder, cat_count=8):
    print('Contacting server to download cats...')
    for i in range(1, cat_count + 1):
        name = 'lolcat {}'.format(i)
        print('Downloading {}'.format(name))
        cat_service.get_cat(folder, name)
    print('Done downloading.')
コード例 #9
0
def download_cats(folder):
    print('Contacting server to download the cats...')
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = 'lolcat_{}'.format(i)
        print('Downloading cat ' + name)
        cat_service.get_cat(folder, name)
コード例 #10
0
def download_cats(folder):
    cat_count = 8

    for i in range(1, cat_count + 1):
        name = f'lolcat_{i}'
        print(f'downloading {name}')
        cat_service.get_cat(folder, name)
    print('done')
コード例 #11
0
def download_cats(folder):
    print("Contacting Server to download cats...")
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = 'lolcat {}'.format(i)
        print("Downloading cat " + name)
        cat_service.get_cat(folder, name)
    print("Done!")
コード例 #12
0
def download_cats(folder):

    cat_count = 8
    for i in range(1, cat_count + 1):
        name = "lolcat_{}".format(i)
        print('Downloading cat {}'.format(name))
        cat_service.get_cat(name, folder)
    print('Done!')
コード例 #13
0
ファイル: lolcats.py プロジェクト: ramitch91/rmtest_repo
def download_cats(folder):
    print("Contacting server to download cats...")
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = f"lolcat_{i}"
        print(f"Downloading cat {name}")
        cat_service.get_cat(folder, name)
    print("done")
コード例 #14
0
ファイル: program.py プロジェクト: arbmos/cat_factory
def download_cats(folder):
  cat_count = 8
  for i in range(1, cat_count + 1):
    name = 'lolcat_{}'.format(i)
    print('downloading cat ' + name)
    cat_service.get_cat(folder, name)
    
  print('alright alright')
コード例 #15
0
ファイル: program.py プロジェクト: adredmond/talkpython
def download_cats(folder):
    CAT_COUNT = 10
    print('Contacting server to download.')
    for cat in range(1, CAT_COUNT + 1):
        name = 'lolcat_{}'.format(cat)
        print('Downloading ' + name)
        cat_service.get_cat(folder, name)
    print('done')
コード例 #16
0
def download_cats(output_dir):
    cat_count = 8
    print('Downloading LOL cat pictures ....')
    for i in range(1, cat_count+1):
        name = f'lolcat_{i}'
        print(f'downloading {name}')
        cat_service.get_cat(output_dir, name)
    print('Done!')
コード例 #17
0
ファイル: program.py プロジェクト: obuqwe/Python-Project
def download_cats(folder):
    print('Contacting server to download cats...')
    cat_count = 8
    for i in range(1, cat_count+1):
        name = f'lolcat_{i}'
        print('Downloading cat ' + name)
        cat_service.get_cat(folder, name)
    print('Done.')
コード例 #18
0
def download_cats(folder):
    print("Contacting server to download cats...")
    cat_count = 10
    for i in range(1, cat_count + 1):
        name = f"lolcat {i}"
        print("Downloading cat " + name)
        cat_service.get_cat(folder, name)
    print("DONE")
コード例 #19
0
ファイル: program.py プロジェクト: adredmond/talkpython
def download_cats(folder):
    CAT_COUNT = 10
    print('Contacting server to download.')
    for cat in range(1, CAT_COUNT + 1):
        name = 'lolcat_{}'.format(cat)
        print('Downloading ' + name)
        cat_service.get_cat(folder, name)
    print('done')
コード例 #20
0
def download_cats(folder):
	print('Contacting server to download cats...')
	for i in range(1, 9):
		name = f'lolcat_{i}'
		print(f'Downloading cat {name}')
		cat_service.get_cat(folder, name)

	print('Done.')
コード例 #21
0
def download_cats(folder):
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = 'lolcat_{}'.format(i)
        print('Downloading cat ' + name)
        cat_service.get_cat(folder, name)

    print('Done')
コード例 #22
0
def download_cats(data):
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = "lolcat {}".format(i)
        print("Downloading {}".format(name))
        cat_service.get_cat(data, name)

    print("Done.")
コード例 #23
0
def download_cats(folder):
    print('Contacting server to download cats...')
    cat_service.get_cat(folder, "")
    cat_count = 8
    for i in range(0, cat_count):
        # end kan defineres direkte i print
        name = 'lolcat_' + format(i)
        print('Downloading cat: ' + name, end='... \n')
        cat_service.get_cat(folder, name)
コード例 #24
0
def download_cats(folder):
    cat_count = 8
    print("Contacting server to download cats...")
    # a standard for loop iterating through a range of integers
    for i in range(1, cat_count + 1):
        name = 'lolcat_{}'.format(i)
        print('Downloading cat {}'.format(i))
        cat_service.get_cat(folder, name)
    print("Done!")
コード例 #25
0
def download_cats(folder):
    print('Connecting to server...')
    cat_count = 8
    for i in range(1, cat_count+1):
        name = 'lolcat {}'.format(i)
        print('Downloading cat ' + name)
        cat_service.get_cat(folder, name)

    print('Done')
コード例 #26
0
def download_cats(folder):
    print('Talking to server...')
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = f'lolcat_{i}'
        print(f'Downloading cat {name}')
        cat_service.get_cat(folder, name)

    print('Done')
コード例 #27
0
def download_cats(folder):
    print('Contacting cat server.....')
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = 'lolcat_{}'.format(i)
        print('Downloading cat ' + name)
        cat_service.get_cat(folder, name)

    print("CATS READY")
コード例 #28
0
def download_cats(folder):
    print('Contacting server...')
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = 'lolcat_{}'.format(i)
        print('Downloading cat ' + name)
        cat_service.get_cat(folder, name)

    print("Finished downloading your cats, bro")
コード例 #29
0
ファイル: program.py プロジェクト: ukumar37/TalkPython
def download_cats(folder):
    print('contacting server to download cats ...')
    cat_count = 8  # get 8 cats only
    for i in range(1, cat_count + 1):
        name = 'lolcat {}'.format(i)
        print('downloading cat ' + name)
        cat_service.get_cat(folder, name)

    print('done')
コード例 #30
0
ファイル: program.py プロジェクト: malak33/talk_Python
def download_cats(folder):
    print('Contacting server to download cat pics...')
    cat_count = 8
    for i in range(1, cat_count +1):
        name = 'lolcat{}'.format(i)
        print('Downloading cat pics: ' + name)
        cat_service.get_cat(folder, name)
        # print(i, end=', ')
    print('Done.')
コード例 #31
0
def download_cats(folder):
    print("Fetching cats...")
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = 'lolcat_{}'.format(i)
        print("{}...".format(name))
        cat_service.get_cat(folder, name)

    print("Cats downloaded")
コード例 #32
0
def download_cat(folder):
    cat_count = 8
    print('Getting Cats...')
    for i in range(1, cat_count + 1):
        name = 'lolcat_{}'.format(i)
        print('downloading {}'.format(name))
        cat_service.get_cat(folder, name)

    print('Done.')
コード例 #33
0
ファイル: program.py プロジェクト: cannatx/4MeTests
def download_cats(folder):
    print('Contacting server to download cats...')
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = 'lolcat {}'.format(i)
        print('Downloading cat {}'.format(name))
        # print(i, end=', ') # con "end" se puede definir el caracter final de cada print
        cat_service.get_cat(folder, name)

    print('Done! ')
コード例 #34
0
def download_cats(folder):
    print('Connecting to server')
    cat_count = 8
    # basic loop
    for i in range(1, cat_count+1):
        name = 'lolcat {}'.format(i)
        print('Downloading {}'.format(name))
        cat_service.get_cat(folder, name)

    print('Downloading complete')
コード例 #35
0
def download_cats(folder):
    print("Contactinf server to download cats..........")
    cat_count = 8
    for i in range(1, cat_count + 1):
        name = "lolcat_{}".format(i)
        # print(i, end=", ")
        print("Downloading cat" + name)
        cat_service.get_cat(folder, name)

    print("Done!!!!!!!!!!!")
コード例 #36
0
def download_cats(folder):
    print('Contacting server to download cats...')
    cat_count = 8
    for i in range(1, cat_count + 1):
        #        print(i, end=', ')  -- notice how you can change end from \n to something else for readablity
        name = 'lolcat_{}'.format(i)
        print('Downloading cat ' + name)
        cat_service.get_cat(folder, name)

    print("done.")