rushpu |
rushpu 最近回复了
| 回复了 tiRolin 创建的主题 › 如何使用 Python 实现自动玩送餐游戏的程序?2024 年 11 月 21 日 |
用像素点多点匹配应该是最快的,这里有一个我用过的音游脚本就是这样,https://github.com/yujianke100/HBR-AutoBeat
| 回复了 crc8 创建的主题 › 为什么 Python 会有那么多人喜欢用?2024 年 11 月 15 日 |
语言之争,日经贴
| 回复了 McreeWu 创建的主题 › 关于远程执行(ansible 等工具)相关问题2024 年 9 月 5 日 |
你可以看下这个,基于 ansible ,https://github.com/ansible/awx/blob/devel/docs/clustering.md
| 回复了 jwautumn 创建的主题 › 如何合理的,合法的在日常中携带着“正当防卫工具”2023 年 5 月 8 日 |
金属球棍
| 回复了 ranxi 创建的主题 › 请教 Python 大佬,遍历一个 5GB 大小的 txt 文件,用什么方式效率比较高2022 年 7 月 22 日 |
可以用 dask.bag.read_text
https://examples.dask.org/bag.html
https://examples.dask.org/bag.html
| 回复了 among 创建的主题 › mongodb 中的递归查找子目录2021 年 12 月 1 日 |
先用 graphLookup 递归目录表
https://docs.mongodb.com/manual/reference/operator/aggregation/graphLookup/
在用 lookup 查出对应目录的文件
https://docs.mongodb.com/manual/reference/operator/aggregation/lookup/
https://docs.mongodb.com/manual/reference/operator/aggregation/graphLookup/
在用 lookup 查出对应目录的文件
https://docs.mongodb.com/manual/reference/operator/aggregation/lookup/
| 回复了 dream4ever 创建的主题 › MongoDB 按题型保持一定比例抽题2021 年 7 月 30 日 |
| 回复了 threedream 创建的主题 › 关于 MongoDB aggregate 和 mapReduce 的统计问题2017 年 12 月 13 日 |
把你数据库的 timestamp 搞成 NumberLong 型的,
然后
aggregate([
{
"$group": {
"_id": {
"$dateToString": {
"format": "%Y-%m-%d",
"date": {
"$add": [
new Date(0),
"$timestamp"
]
}
}
},
"count": { "$sum": 1 }
}
}
])
然后
aggregate([
{
"$group": {
"_id": {
"$dateToString": {
"format": "%Y-%m-%d",
"date": {
"$add": [
new Date(0),
"$timestamp"
]
}
}
},
"count": { "$sum": 1 }
}
}
])