V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  Baloneo  ›  全部回复第 1 页 / 共 3 页
回复总数  57
1  2  3  
70 天前
回复了 bawanag 创建的主题 买买买 有没有对电视有研究的大佬求推荐
@TimPeake #14 请问客厅尺寸多少
阿里的 os 确实遇到了经常负载高的时候 ssh 都连不进去 只能重启
快捷键唤醒 `/opt/apps/com.qq.weixin.deepin/files/run.sh -w`
106 天前
回复了 777777 创建的主题 程序员 go 协程比 Python 多进程快好多!
快多少?
回车?
125 天前
回复了 paradox2023 创建的主题 北京 北京有什么好单位/公司
上一个帖子不是说工资十多万? 一下子跨度到 30+?
kde connect
184 天前
回复了 changnet 创建的主题 生活 什么世道,自行车被偷了
广州头盔 打气筒 雨衣都经常有人偷
197 天前
回复了 Baloneo 创建的主题 Linux 有没有 Linux 下的游戏手柄推荐
@coderluan
@onikage
@xgfan 好的 买个试试
203 天前
回复了 Baloneo 创建的主题 Python Rust 给 Python Web 带来的性能提升
@fakeshadow 比 fastapi 还是快很多
203 天前
回复了 Baloneo 创建的主题 Python Rust 给 Python Web 带来的性能提升
@Oxonomy 或许可以将更多的模块用 rust python 绑定重写 用 python 调用
203 天前
回复了 Baloneo 创建的主题 Python Rust 给 Python Web 带来的性能提升
203 天前
回复了 Baloneo 创建的主题 Python Rust 给 Python Web 带来的性能提升
@fakeshadow 确实是错了 估计是 Robyn 框架并发的 bug
203 天前
回复了 Baloneo 创建的主题 Python Rust 给 Python Web 带来的性能提升
@vicalloy 已经是 orjson 了
203 天前
回复了 Baloneo 创建的主题 Python Rust 给 Python Web 带来的性能提升
@rrfeng 是的
204 天前
回复了 XueXianqi 创建的主题 Python Flask 如何验证前端传过来的数据
```
def validate_schema(schema_class):
assert issubclass(schema_class, Schema) # Marshmallow

def decorator(view_func):
@functools.wraps(view_func)
def inner(*args, **kwargs):

if request.method == "GET":
form_data = request.args
else:
form_data = request.json
try:
data = schema_class().load(form_data)
_request_ctx_stack.top.schema_data = data
except ValidationError as e:
return error_json(
ResponseCode.ERROR, parse_err_messages(e), data=e.messages
)
return view_func(*args, **kwargs)

return inner

return decorator

@validate_schema(val.PostTestSchema)
def api_test():
device_id = current_schema_data.get('device_id')
```
Python +1
210 天前
回复了 Baloneo 创建的主题 问与答 godaddy 买的 cn 域名会有什么问题么
@libook 好的 谢谢
211 天前
回复了 ysz1121 创建的主题 程序员 golang 一个很神奇的问题
fmt.Println(strings.TrimLeft("Abc123-c12456", "Abc123-")) >> 456
1  2  3  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3103 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 30ms · UTC 12:55 · PVG 20:55 · LAX 05:55 · JFK 08:55
Developed with CodeLauncher
♥ Do have faith in what you're doing.