Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to use one with as statement to open two files python

with open('a', 'w') as a, open('b', 'w') as b:
    do_something()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #statement #open #files #python
ADD COMMENT
Topic
Name
8+2 =