├── .gitattributes ├── readme └── www └── app.py /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | # text=auto 3 | -------------------------------------------------------------------------------- /readme: -------------------------------------------------------------------------------- 1 | this is a python project 2 | learning python -------------------------------------------------------------------------------- /www/app.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | __author__ = 'Ayayaneru' 4 | 5 | import logging;logging.basicConfig(level=logging.INFO) 6 | import asyncio 7 | from aiohttp import web 8 | 9 | async def index(request): 10 | return web.Response(body=b'

Moe

',content_type='text/html') 11 | 12 | def init(): 13 | app=web.Application() 14 | app.router.add_get('/',index) 15 | web.run_app(app,host='127.0.0.1',port=9000) 16 | 17 | if __name__ == "__main__": 18 | init() 19 | --------------------------------------------------------------------------------