用sys.stdin的open()循环

时间:2014-06-18 20:18:19

标签: python

我正在为2个文件filenameC和filenameA测试以下代码,它运行正常:

with  open(locationA + filenameC,'r') as fileC, open(locationA + filenameA,'r') as fileA:

现在我想在AWS上使用此代码,其中包含多个filenameC和filenameA文件。 我正在考虑使用sys.stdin,但我是Python的初学者,我无法弄清楚如何使用它。 任何的想法 ? 感谢

0 个答案:

没有答案
相关问题