2017-03-11から1日間の記事一覧

7.10. Carrying Extra State with Callback Functions

def apply_async(func, args, *, callback): # Compute the result result = func(*args) # Invoke the callback with the result callback(result)

format指定

print('[{}] Got: {}'.format(self.sequence, result))