PyWebIO v1.2.3 DocumentationWhat’s new in PyWebIO 1.0 What’s new in PyWebIO 0.3 What’s new in PyWebIO 0.2 Implement Doc Server-Client communication protocol Command Event Indices and tables Index Module Index Search Page Discussion critical section problems. Using coroutine session To use coroutine-based session, you need to use the async keyword to declare the task function as a coroutine function, and use the await syntax to call the function: from pywebio.input import * from pywebio.output import * from pywebio import start_server async def say_hello(): name = await input("what's your name?") put_text('Hello, %s' % name) st0 码力 | 119 页 | 7.43 MB | 1 年前3
PyWebIO v1.2.2 DocumentationWhat’s new in PyWebIO 1.0 What’s new in PyWebIO 0.3 What’s new in PyWebIO 0.2 Implement Doc Server-Client communication protocol Command Event Indices and tables Index Module Index Search Page Discussion critical section problems. Using coroutine session To use coroutine-based session, you need to use the async keyword to declare the task function as a coroutine function, and use the await syntax to call the function: from pywebio.input import * from pywebio.output import * from pywebio import start_server async def say_hello(): name = await input("what's your name?") put_text('Hello, %s' % name) st0 码力 | 119 页 | 7.41 MB | 1 年前3
PyWebIO v1.3.2 DocumentationWhat’s new in PyWebIO 1.0 What’s new in PyWebIO 0.3 What’s new in PyWebIO 0.2 Implement Doc Server-Client communication protocol Command Event Indices and tables Index Module Index Search Page Discussion JSONResponse from starlette.routing import Route, Mount from pywebio.platform.fastapi import webio_routes async def homepage(request): return JSONResponse({'hello': 'world'}) app = Starlette(routes=[ Route('/' critical section problems. Using coroutine session To use coroutine-based session, you need to use the async keyword to declare the task function as a coroutine function, and use the await syntax to call the0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.0 DocumentationWhat’s new in PyWebIO 1.0 What’s new in PyWebIO 0.3 What’s new in PyWebIO 0.2 Implement Doc Server-Client communication protocol Command Event Indices and tables Index Module Index Search Page Discussion JSONResponse from starlette.routing import Route, Mount from pywebio.platform.fastapi import webio_routes async def homepage(request): return JSONResponse({'hello': 'world'}) app = Starlette(routes=[ Route('/' critical section problems. Using coroutine session To use coroutine-based session, you need to use the async keyword to declare the task function as a coroutine function, and use the await syntax to call the0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.1 DocumentationWhat’s new in PyWebIO 1.0 What’s new in PyWebIO 0.3 What’s new in PyWebIO 0.2 Implement Doc Server-Client communication protocol Command Event Indices and tables Index Module Index Search Page Discussion JSONResponse from starlette.routing import Route, Mount from pywebio.platform.fastapi import webio_routes async def homepage(request): return JSONResponse({'hello': 'world'}) app = Starlette(routes=[ Route('/' critical section problems. Using coroutine session To use coroutine-based session, you need to use the async keyword to declare the task function as a coroutine function, and use the await syntax to call the0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.3 DocumentationWhat’s new in PyWebIO 1.0 What’s new in PyWebIO 0.3 What’s new in PyWebIO 0.2 Implement Doc Server-Client communication protocol Command Event Indices and tables Index Module Index Search Page Discussion JSONResponse from starlette.routing import Route, Mount from pywebio.platform.fastapi import webio_routes async def homepage(request): return JSONResponse({'hello': 'world'}) app = Starlette(routes=[ Route('/' critical section problems. Using coroutine session To use coroutine-based session, you need to use the async keyword to declare the task function as a coroutine function, and use the await syntax to call the0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.3 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 4.11 Server-Client communication protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 5 Indices JSONResponse from starlette.routing import Route, Mount from pywebio.platform.fastapi import webio_routes async def homepage(request): return JSONResponse({'hello': 'world'}) app = Starlette(routes=[ Route('/' critical section problems. Using coroutine session To use coroutine-based session, you need to use the async keyword to declare the task function as a coroutine function, and use the await syntax to call the0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.1 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 4.11 Server-Client communication protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 5 Indices JSONResponse from starlette.routing import Route, Mount from pywebio.platform.fastapi import webio_routes async def homepage(request): return JSONResponse({'hello': 'world'}) app = Starlette(routes=[ Route('/' critical section problems. Using coroutine session To use coroutine-based session, you need to use the async keyword to declare the task function as a coroutine function, and use the await syntax to call the0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 4.11 Server-Client communication protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 5 Indices JSONResponse from starlette.routing import Route, Mount from pywebio.platform.fastapi import webio_routes async def homepage(request): return JSONResponse({'hello': 'world'}) app = Starlette(routes=[ Route('/' critical section problems. Using coroutine session To use coroutine-based session, you need to use the async keyword to declare the task function as a coroutine function, and use the await syntax to call the0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.2 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 4.11 Server-Client communication protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 5 Indices JSONResponse from starlette.routing import Route, Mount from pywebio.platform.fastapi import webio_routes async def homepage(request): return JSONResponse({'hello': 'world'}) app = Starlette(routes=[ Route('/' critical section problems. Using coroutine session To use coroutine-based session, you need to use the async keyword to declare the task function as a coroutine function, and use the await syntax to call the0 码力 | 100 页 | 1.34 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













