コード例 #1
0
ファイル: math_route.py プロジェクト: KamiWang/Studying
async def radix_convert(request):
    params = gfp(request, xmb.radix_convert)
    reply = CommonReply()
    reply.result = xmb.radix_convert(**params)
    return reply.json()
コード例 #2
0
ファイル: math_route.py プロジェクト: KamiWang/Studying
async def square(request):
    params = gfp(request, xmb.square)
    reply = CommonReply()
    reply.result = xmb.square(**params)
    return reply.json()
コード例 #3
0
ファイル: math_route.py プロジェクト: KamiWang/Studying
async def factorial(request):
    params = gfp(request, xmb.factorial)
    reply = CommonReply()
    reply.result = xmb.factorial(**params)
    return reply.json()
コード例 #4
0
ファイル: math_route.py プロジェクト: KamiWang/Studying
async def divide(request):
    params = gfp(request, xmb.divide)
    reply = CommonReply()
    reply.result = xmb.divide(**params)
    return reply.json()
コード例 #5
0
ファイル: math_route.py プロジェクト: KamiWang/Studying
async def multiply(request):
    params = gfp(request, xmb.multiply)
    reply = CommonReply()
    reply.result = xmb.multiply(**params)
    return reply.json()
コード例 #6
0
ファイル: math_route.py プロジェクト: KamiWang/Studying
async def plus(request):
    params = gfp(request, xmb.plus)
    reply = CommonReply()
    reply.result = xmb.plus(**params)
    return reply.json()