会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
AngDH
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
27
28
29
30
31
32
33
34
35
···
124
下一页
2023年5月27日
learn c++ 右值引用
摘要:
阅读全文
posted @ 2023-05-27 14:02 AngDH
阅读(6)
评论(0)
推荐(0)
2023年5月25日
learn c++ 函数返回
摘要:
阅读全文
posted @ 2023-05-25 22:41 AngDH
阅读(26)
评论(0)
推荐(0)
2023年5月23日
learn c++ 参数引用
摘要: #include <iostream> struct Role { int hp; int mp; int damage; }; bool Act(Role& Acter,Role& beAct) { beAct.hp -= Acter.damage; return beAct.hp < 0; }
阅读全文
posted @ 2023-05-23 22:39 AngDH
阅读(23)
评论(0)
推荐(0)
2023年5月22日
learn c++ 智能指针
摘要: #include <iostream> int main() { int* p; { std::unique_ptr<int[]> a{std::make_unique<int[]>(50)}; a[2] = 240; p = a.get(); std::cout << p[2]; } std::c
阅读全文
posted @ 2023-05-22 00:26 AngDH
阅读(24)
评论(0)
推荐(0)
2023年5月21日
learn c++ 变量作用域
摘要: #include <iostream> int a{ 100 }; int main() { int a{160}; { std::cout << a << std::endl; char a = 'a'; std::cout << a << std::endl; std::cout << ::a
阅读全文
posted @ 2023-05-21 15:54 AngDH
阅读(18)
评论(0)
推荐(0)
2023年5月12日
scrapydweb 1.4.0 版本依赖
摘要: APScheduler==3.5.3flask==2.0.3flask-compress==1.10.1Flask-SQLAlchemy==2.5.1logparser==0.8.2requests==2.21.0six==1.12.0SQLAlchemy==1.4.15w3lib==1.17.0J
阅读全文
posted @ 2023-05-12 17:33 AngDH
阅读(59)
评论(0)
推荐(0)
2023年5月10日
centos 格式化硬盘 ,挂载
摘要: 在 CentOS 上格式化硬盘并挂载,可以按照以下步骤进行操作: 首先,使用 fdisk 命令分区并格式化硬盘。假设要格式化的硬盘为 /dev/sdb,可以使用以下命令: fdisk /dev/sdb 然后按照提示进行分区操作。 n: 创建一个新分区 d: 删除一个分区 p: 显示分区表 w: 将分
阅读全文
posted @ 2023-05-10 18:56 AngDH
阅读(1011)
评论(0)
推荐(0)
2023年5月8日
asyncio.Semaphore
摘要: asyncio.Semaphore是一个异步信号量,用于协调多个协程对共享资源的访问。 异步信号量在协程中的使用方式与线程中的普通信号量类似,但是它是非阻塞的。当信号量的计数器为0时,协程将会被阻塞,直到其他协程释放了该信号量。 import asyncio async def worker(sem
阅读全文
posted @ 2023-05-08 12:14 AngDH
阅读(1727)
评论(0)
推荐(1)
用Python的subprocess模块来执行Linux命令
摘要: 这个函数会执行类似于 ps aux | grep python | awk '{print $2}' | xargs kill -9 的Linux命令。你可以将参数 process_name 替换为你想要杀死的进程名。 import subprocess def kill_process(proce
阅读全文
posted @ 2023-05-08 11:42 AngDH
阅读(288)
评论(0)
推荐(0)
2023年5月7日
大佬的博客
摘要: https://github.com/JSREI 递归代理 https://github.com/JSREI/js-deep-proxy
阅读全文
posted @ 2023-05-07 16:27 AngDH
阅读(52)
评论(0)
推荐(0)
上一页
1
···
27
28
29
30
31
32
33
34
35
···
124
下一页
公告