Cómo usar uno con la declaración AS para abrir dos archivos Python
with open('a', 'w') as a, open('b', 'w') as b:
do_something()
Embarrassed Emu
with open('a', 'w') as a, open('b', 'w') as b:
do_something()