Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /Nostalgia-Season-Train_DesksetBack /src /deskset /router /weather.py
| # 基础天气:晴天 雨天 多云 | |
| WEATHER = ['sunny', 'rainy', 'cloudy'] | |
| # === 路由 === | |
| from fastapi import APIRouter, Depends | |
| from deskset.router.unify import check_token, DesksetRepJSON | |
| router_weather = APIRouter( | |
| prefix='/v0/weather', tags=['天气'], | |
| dependencies=[Depends(check_token)], | |
| default_response_class=DesksetRepJSON | |
| ) | |
| def random_weather(): # 随机生成并返回天气信息 | |
| import random | |
| return WEATHER[random.randint(0, len(WEATHER)-1)] | |
Xet Storage Details
- Size:
- 516 Bytes
- Xet hash:
- bf5713731c69ad8efa51f1c9773fd8c5864a96e2db162bc81618edbded32e7cb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.