-
-
Save wannaphong/b21491328a6f1ce7ced12b8fe8c554d7 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
>>> 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