This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import requests | |
| resp = requests.get('http://flupy.org/data/flags//cn/cn.gif') | |
| with open("downloads/cn.gif", 'wb') as fp: | |
| fp.write(resp.content) | |
| # Find and Download all Flags in the fastest time possible |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import inspect | |
| def simple_coroutine(): | |
| print("-> coroutine started") | |
| x = yield | |
| print("-> coroutine received:", x) | |
| my_coro = simple_coroutine() |