kopia lustrzana https://github.com/micropython/micropython-lib
8 wiersze
103 B
Python
8 wiersze
103 B
Python
|
|
from multiprocessing import Pool
|
||
|
|
|
||
|
|
def f(x):
|
||
|
|
return x*x
|
||
|
|
|
||
|
|
pool = Pool(4)
|
||
|
|
print(pool.apply(f, (10,)))
|