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 multiprocessing | |
from multiprocessing import Pool | |
from tqdm import tqdm | |
import functools | |
import time | |
def square_and_add(x, y=5): | |
# function to multiprocess | |
time.sleep(0.1) |
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
3 | |
C 0. 0. 0. | |
H 1. 1. 1. | |
H 2. 3. 1. |