CharAct3's recent timeline updates
CharAct3

CharAct3

V2EX member #215177, joined on 2017-02-15 10:29:46 +08:00
Per CharAct3's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
CharAct3's recent replies
两种都可以吧,挂载到本地路径方便点,不挂载的话需要进入容器手动备份 volume 里面的内容
要完全防止白屏,可以试试前端增量发布,构建完获取上个版本的 craft 合并一下
function gfix(){ git reset --soft HEAD~${1-1} && git commit --amend -C HEAD; }

加一个这个命令,随时 commit,要 push 前直接 gfix <number> 就可以快速 squash commit 了
Jun 29, 2021
Replied to a topic by chaleaoch Python 如何对 flask api 的接口做校验?
1. 可以使用 marshmallow
2. 可以试试 https://github.com/greyli/apiflask,这个也是使用的 marshmallow
3. 看了一下 eve,应该是个用 flask 和 ceberus 封装的 RESTful 框架
1. 将安装了 poetry 的 python image 作为基础镜像
2. 复制依赖文件到自定义的 work dir 下
3. 运行 poetry 命令安装依赖

FROM custom_python_with_poetry
WORKDIR /work_dir
COPY pyproject.toml poetry.lock /work_dir

RUN poetry config virtualenvs.create false && poetry install --no-dev --no-interaction --no-ansi
Aug 3, 2020
Replied to a topic by smallpython Python 在 python3 中, 字节流如何转换成字符串
b.hex()
Jul 26, 2020
Replied to a topic by limyel Python 异步是 Python web 的未来吗
@abersheeran fastapi 其实可以改个名字叫 starlette-rest-framework,不过作者确实很用心,文档写的很好,又会营销,也算是为 asgi 生态做出了贡献吧😂
Jun 23, 2020
Replied to a topic by wmwgijol28 WWDC wwdc20 看完了,大家感受如何!
不知道以后 iPad 能不能装 ARM 版的 MacOS
Jun 22, 2020
Replied to a topic by manami 分享发现 记一次配眼镜的非理性消费
宝岛不是可以在天猫店买一个 1399 抵 2000 的券去线下用吗
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1036 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 18:46 · PVG 02:46 · LAX 11:46 · JFK 14:46
♥ Do have faith in what you're doing.