Last active
June 29, 2020 03:20
-
-
Save Caeson/f5db187b88840f21928a777a1e7788d9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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