阅读背景:

当使用一个传送到另一个的python文件时,我可以将stdin与argv结合使用吗?

来源:互联网 

Basically I am running mapreduce so I'm going to pipe in to the reducer. What I'm having trouble with is how to specify a directory path which I will use with os.listdir to essentially get to and then compute all the files in that directory alone. But I know I only want what is in the last directory and not the sub-directories on that same level. I may consider also using fileinput(). Basically I am running mapreduce so I'm going t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: