Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Aug 15th, 2018
71
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
urls = ['a','b','c']
y = '0'
def f(x):
global y
return x + y
if __name__ == '__main__':
y = '1'
with Pool(2) as pool:
results = pool.map(f, urls)
print(results)
Add Comment
Please,
Sign In
to add comment
Public Pastes
CCO Training Contest 4 Three Nodes
C++ | 51 sec ago | 8.76 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 12 min ago | 0.38 KB
GPA Calculate
Python | 15 min ago | 3.50 KB
6
Python | 36 min ago | 0.20 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 49 min ago | 0.39 KB
Luck Hub
Lua | 54 min ago | 0.10 KB
Business Bloomer WooCommerce: Create an order...
PHP | 1 hour ago | 13.41 KB
Business Bloomer WooCommerce: Bulk Sale Price
PHP | 1 hour ago | 9.61 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!