SaltCat 最近的时间轴更新
SaltCat's repos on GitHub
JavaScript · 2 人关注
GraiaDocument
Rust · 1 人关注
croncycle-rs
0 人关注
Action-TWRP-builder
用GitHub工作流构建安卓系统的Recovery
0 人关注
actions_build_ErfanGSIs
2020-04-21 commit了好几次后,终于成功!现在可以按照readme.md使用了!
Python · 0 人关注
aioffsend
a asyncio port of Firefox Send.
Shell · 0 人关注
android-kernel-actions
An action to build an Android kernel with specified toolchains.
0 人关注
Android-Kernel-Builder
Automaticcaly build android kernel by github actions.
0 人关注
avilla-tg
The next-gen framework for IM development. Powered by Graia Project.
0 人关注
awesome-pdm
A curated list of awesome PDM plugins and resources
Java · 0 人关注
BilibiliTask
哔哩哔哩(B站)自动完成每日任务,投币,点赞,直播签到,自动兑换银瓜子为硬币,自动送出即将过期礼物,漫画App签到。
PHP · 0 人关注
blessing-skin-server
A web application brings your custom skins back in offline Minecraft servers.(第三方 Minecraft 皮肤站)
Python · 0 人关注
Bot
Java · 0 人关注
CatServer
Minecraft1.10.2/1.12.2版本的Forge+Bukkit服务端
Pascal · 0 人关注
convnet
Convnet客户端
0 人关注
cpython
The Python programming language
0 人关注
CraftTweaker-Documentation
CraftTweaker 简体中文文档
Python · 0 人关注
croncycle-py
Python · 0 人关注
cryptography
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.
0 人关注
cython-hidapi
:snake: Python wrapper for the HIDAPI
0 人关注
dart_sealed
Dart and Flutter sealed class generator and annotations, with match methods and other utilities. There is also super_enum compatible API.
0 人关注
docs-zh
0 人关注
docsify
🃏 A magical documentation site generator.
0 人关注
docsify-themeable
A delightfully simple theme system for docsify.js. Features multiple themes with rich customization options, an improved desktop and mobile experience, and legacy browser support (IE10+).
0 人关注
EnergyLevelTransition
Athwart the Gehlon roars a squall, Beneath the tree do roamers stall. When to becrawl, a windfall. 骤风穿行于知识之槲,迷茫者在树下彷徨驻足。将要攀登之际,果实落下。
0 人关注
EnigTech2
大型集成科魔类魔改整合包
Java · 0 人关注
FLE
Far Land Era
0 人关注
github-notion-star
0 人关注
go-cqhttp
cqhttp的golang实现,轻量、原生跨平台.
SaltCat

SaltCat

V2EX 第 435227 号会员,加入于 2019-08-11 18:10:41 +08:00
SaltCat 最近回复了
2020-12-14 22:44:38 +08:00
回复了 Antigen 创建的主题 Python 请推荐一门能精确控制大量并发并行的编程语言或解决方案
> 一毫秒都无法接受

rust + tokio 吧.
2020-12-07 22:54:12 +08:00
回复了 IVeverKB 创建的主题 Python 新手 关于 Python 协程的一个问题
用 asyncio.Lock,还有就直接 asyncio 技术栈一把嗦吧,asyncio 的侵入性感觉还是太强了。。。
2020-12-07 22:52:01 +08:00
回复了 oldbird 创建的主题 程序员 怎么知道 QQ 好友里哪些和自己在同一个群里?
mirai 自己写吧
2020-12-02 22:34:00 +08:00
回复了 abersheeran 创建的主题 Python 关于协程转线程的一个问题
感觉你的表述并不清楚: 你没有说是如何从 coroutine send msg 到 thread 进行处理的(try contextvars); 第一个写的消息被覆盖, 是否考虑使用类似 stack 这样的数据结构 + property 防止覆盖? 如果涉及到同 /异步上下文传递, 可以考虑 `contextvars` 这个库: asyncio 在执行协程时会复制一份当前的上下文来执行, 从而避免出现覆写的问题;
希望能解决你的问题.
我好久都不用直接 json 序列化了, 上次用是 custom FastAPI 的 Response, 自己造了个 OrjsonResponse(后面官方提供了), 就用了 singledispacherxxxxx 和这个特性.
使用 json.dumps 的 default 参数:

```
json.dumps(sth, default=lambda x: x.toNative() if isinstance(x, MyCustomFloat) else None)
```
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   975 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 20:50 · PVG 04:50 · LAX 13:50 · JFK 16:50
Developed with CodeLauncher
♥ Do have faith in what you're doing.