Created
September 3, 2018 10:29
-
-
Save oro2714/5574920ffe606fb4124737d0d16d66c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import os | |
from joblib import Parallel, delayed | |
def t(v): | |
os.system("python3 mona_researcher.py " + v) | |
def sc(i,addr): | |
n=len(addr) | |
while i<n: | |
print("\n") | |
print(i) | |
print("\n") | |
t(addr[i]) | |
i+=10 | |
data=[] | |
with open("./addres.csv","r") as f: | |
reader = csv.reader(f) | |
for row in reader: | |
data.append(row) | |
addr=[g[0] for g in data] | |
print(addr) | |
Parallel(n_jobs=10)([delayed(sc)(i,addr) for i in range(10)]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import os | |
from joblib import Parallel, delayed | |
def t(v): | |
os.system("python3 mona_researcher.py " + v) | |
def sc(i,addr): | |
n=len(addr) | |
while i<n: | |
print("\n") | |
print(i) | |
print("\n") | |
t(addr[i]) | |
i+=10 | |
data=[] | |
with open("./addres.csv","r") as f: | |
reader = csv.reader(f) | |
for row in reader: | |
data.append(row) | |
addr=[g[0] for g in data] | |
print(addr) | |
Parallel(n_jobs=10)([delayed(sc)(i,addr) for i in range(10)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment