Skip to content

Instantly share code, notes, and snippets.

@Caeson
Last active June 29, 2020 03:20
Show Gist options
  • Save Caeson/f5db187b88840f21928a777a1e7788d9 to your computer and use it in GitHub Desktop.
Save Caeson/f5db187b88840f21928a777a1e7788d9 to your computer and use it in GitHub Desktop.
from tornado import httpclient, gen, ioloop
import service.user_service
@gen.coroutine
def main():
user = yield service.user_service.get_user_info('')
print(user)
if __name__ == '__main__':
io_loop = ioloop.IOLoop.current()
io_loop.run_sync(main)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment