How to read and write multiple files?

后端 未结 8 1040
南方客
南方客 2020-12-24 00:52

I want to write a program for this: In a folder I have n number of files; first read one file and perform some operation then store result in a separate file. Then

8条回答
  •  醉梦人生
    2020-12-24 01:04

    You may find the fileinput module useful. It is designed for exactly this problem.

提交回复
热议问题