Skip to content

Instantly share code, notes, and snippets.

@wannaphong

wannaphong/1.py Secret

Created June 8, 2017 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wannaphong/b21491328a6f1ce7ced12b8fe8c554d7 to your computer and use it in GitHub Desktop.
Save wannaphong/b21491328a6f1ce7ced12b8fe8c554d7 to your computer and use it in GitHub Desktop.
>>> def plue(x):
... i=0
... num=0
... while i<=x:
... num+=i
... i+=1
... return num
...
>>> total = client.submit(plue, 20000) # client.submit(ฟังก์ชัน, ค่าพารามิเตอร์) ส่งการประมวลผลไป
>>> total.result() # รับผลลัพธ์
200010000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment