📜  如何使用一个 with as 语句打开两个文件 python 代码示例

📅  最后修改于: 2022-03-11 14:46:33.575000             🧑  作者: Mango

代码示例1
with open('a', 'w') as a, open('b', 'w') as b:
    do_something()