上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 阿里云函数计算最近开始取消每个月的免费额度,吃相难看。虽然我平时跑跑个人的定时任务,用到的资源很少,还是决定迁移到别的平台。让它日活-1也算我做的一个贡献吧。 1/ 安装 aws CLI https://docs.aws.amazon.com/cli/latest/userguide/getting 阅读全文
posted @ 2022-11-13 15:08 Jneeee 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 问题 通过vscode 直接跑function test时候报错找不到插件。(手动跑结果也一样:stestr run --no-discover glance/tests/functional/v2/test_images.py::TestQuotasWithRegistry::test_image 阅读全文
posted @ 2022-10-21 19:19 Jneeee 阅读(44) 评论(0) 推荐(0) 编辑
摘要: { "window.zoomLevel": 3, "editor.renderWhitespace": "all", // 特殊字体显示变量 "editor.semanticHighlighting.enabled": true, // "workbench.colorTheme": "Dracul 阅读全文
posted @ 2022-10-15 09:58 Jneeee 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1 前置知识点: for i in range(100) 循环结束够会留下一个变量 i = 99 自由变量 free vars:non-local 如果函数中有对变量赋值的操作,并且没有声明全局变量,那么解释器会默认它是局部变量。 例如: # part1 i = 1 def func1(): pri 阅读全文
posted @ 2022-07-27 14:28 Jneeee 阅读(33) 评论(1) 推荐(0) 编辑
摘要: resize 实际上是迁移的一种,只是前后的 flavor 不同。 https://review.opendev.org/q/topic:bug/1944759 阅读全文
posted @ 2022-07-27 13:24 Jneeee 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 最近在学习阿里云函数计算,利用函数计算 + NAS,做个把函数中数据持久化的 key-value 数据库方案。项目地址 https://github.com/jneeee/aliyun_func_study 多多 star pickle.dumps pickle.loads 是 python 中常见 阅读全文
posted @ 2022-06-04 21:00 Jneeee 阅读(81) 评论(0) 推荐(0) 编辑
摘要: https://github.com/jneeee/qos_tool 用来实时观测 TCP 长短链接,用法在 README 里面 qos_server.py python qos_server.py -p 1000 -6 enable ipv6 -p PORT listen PORT qos_cli 阅读全文
posted @ 2022-05-29 09:27 Jneeee 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 树莓派 3B+ init 记录 Author: Jneeee Created: March 3, 2023 8:28 PM Featured: No Last Updated: March 7, 2023 8:20 PM Public: Yes Published: March 3, 2023 Sl 阅读全文
posted @ 2022-05-17 22:09 Jneeee 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 协程 可以被人为调度,遇到IO阻塞时候自动切换到其他事件循环里的任务。 事件循环 理解为一个死循环,去检测并执行某些代码 loop = asyncio.get_event_loop() 任务列表 = [任务1 任务2 任务3 ...] while True: 可执行任务,已完成任务 = 检查任务列表 阅读全文
posted @ 2022-05-15 18:07 Jneeee 阅读(107) 评论(0) 推荐(0) 编辑
摘要: is 和 == 的区别 is 对比的是地址 == 对比值 判空的常见规则 对于可变数据结构(list dict set) l = [] if l: print('true') 对于不可变数据,一般使用 == 对于 None,总是使用 is >>> a = [] >>> b = [] >>> id(a 阅读全文
posted @ 2022-05-11 18:27 Jneeee 阅读(89) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页