【发布时间】:2014-09-17 22:30:56
【问题描述】:
我想通过使用第一个文件作为输入并输出到第三个文件来搜索第二个文件中出现的行。它也必须很快列表是第二个文件高于 200k,第一个文件高于 75k。
**FILE 1**
1234
2324
534
235
1
643
**FILE 2**
643, 30, , , People, email@example.com,.....
1234, 45, , , People, email@example.com,.....
643, 32, , , People, email@example.com,.....
4536, 654, , , People, email@example.com,.....
898, 354, , , People, email@example.com,.....
**FILE 3**
643, 30, , , People, email@example.com,.....
1234, 45, , , People, email@example.com,.....
就是这样,伙计们。提前致谢。
【问题讨论】:
-
你有什么代码可以分享给我们吗?
-
我没有任何代码要分享。我对 python 不太擅长
-
SO 不适合发布此类问题。它旨在成为询问有关编程的特定问题的地方,而不是为您编写代码。尽管 Celeo 已为您发布了答案,但您不应期望每次都会发生这种情况,并且应避免提出仅描述您想要的脚本或程序的一组要求的“问题”。
-
可以了,我又试了一次,还可以