Improve code

This commit is contained in:
Alex Kotov 2023-01-08 01:05:21 +04:00
parent 5c526f1371
commit 313221a2cf
No known key found for this signature in database
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 5 additions and 2 deletions

View File

@ -3,8 +3,11 @@
import asyncio
from nio import AsyncClient
async def main():
def main():
asyncio.get_event_loop().run_until_complete(loop())
async def loop():
print(123)
if __name__ == '__main__':
asyncio.get_event_loop().run_until_complete(main())
main()