这个是题目的链接:
https://drive.google.com/drive/folders/1KQ6LYQcbhdINcVB1ChayloO01oXR1hF6?usp=sharing
import asyncio
def main():
async def do_sync_f():
return sync_f()
loop = asyncio.get_event_loop()
task_g = loop.create_task(async_g())
task_f = loop.create_task(do_sync_f())
tasks = [
task_g, task_f
]
loop.run_until_complete(asyncio.wait(tasks))
print(max(task_g.result(), task_f.result()))
if __name__ == '__main__':
main()