07 2024 档案

摘要:var ab = document.createElement('canvas'); var ac = ab.getContext('2d'); ac['textBaseline'] = 'alphabetic'; ac['fillStyle'] = '#f60'; ac['fillRect'](0 阅读全文
posted @ 2024-07-29 18:46 AngDH 阅读(10) 评论(0) 推荐(0) 编辑
摘要:;var aa = document.createElement('div'); aa.style.cssText = '\n position: absolute;\n left: -9999px;\n font-size: 14px;\n font-family: Arial, sans-ser 阅读全文
posted @ 2024-07-26 15:19 AngDH 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-24 21:49 AngDH 阅读(5) 评论(0) 推荐(0) 编辑
摘要:server.cpp #include <winsock2.h> #include <iostream> using namespace std; #pragma comment(lib,"Ws2_32.lib") int main() { //初始化winsock的环境 WSADATA wd; i 阅读全文
posted @ 2024-07-24 21:36 AngDH 阅读(4) 评论(0) 推荐(0) 编辑
摘要:var aa = document.createElement('canvas'); ab = aa.getContext('webgl'); debugger; var ac = { 'contextName': ab.getParameter(ab['VERSION']), 'glVersion 阅读全文
posted @ 2024-07-24 12:00 AngDH 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-22 23:39 AngDH 阅读(4) 评论(0) 推荐(0) 编辑
摘要:tcp_server.cpp #include <WinSock2.h> #include <iostream> using namespace std; #pragma comment(lib,"ws2_32.lib") int main() { //初始化winsock 环境 WSADATA w 阅读全文
posted @ 2024-07-20 22:19 AngDH 阅读(9) 评论(0) 推荐(0) 编辑
摘要:tcp_server.cpp #include <WinSock2.h> #include <iostream> using namespace std; //指定动态库的lib文件 #pragma comment(lib,"ws2_32.lib") int main() { //初始化winsoc 阅读全文
posted @ 2024-07-18 09:06 AngDH 阅读(11) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_40659970/article/details/131223872 https://npmmirror.com/ 找到对应 nvm 文件夹settings.txt 文件,用管理员身份打开并更改 :加上两行代码保存。 node_mirror:http 阅读全文
posted @ 2024-07-17 10:16 AngDH 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-17 09:10 AngDH 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-17 08:54 AngDH 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-16 22:57 AngDH 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-16 22:52 AngDH 阅读(3) 评论(0) 推荐(0) 编辑
摘要:index.js <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title> 阅读全文
posted @ 2024-07-16 16:23 AngDH 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-15 23:58 AngDH 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-15 23:56 AngDH 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-15 23:52 AngDH 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-15 23:45 AngDH 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-11 09:05 AngDH 阅读(2) 评论(0) 推荐(0) 编辑
摘要:sys.executable 是 Python 中的一个特殊变量,它包含了启动当前 Python 进程的解释器的路径。这个变量在 sys 模块中,该模块是 Python 标准库的一部分,提供了与 Python 解释器相关的各种实用信息和功能。 特点和用途: 确定解释器路径:sys.executabl 阅读全文
posted @ 2024-07-09 13:48 AngDH 阅读(143) 评论(0) 推荐(0) 编辑
摘要:packages/tzlocal/unix.py", line 56, in _get_localzone with open(tzpath, 'rb') as tzfile: IsADirectoryError: [Errno 21] Is a directory: '/etc/timezone 阅读全文
posted @ 2024-07-06 16:43 AngDH 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-06 14:30 AngDH 阅读(4) 评论(0) 推荐(0) 编辑
摘要:在 Python 中,@contextmanager 是一个装饰器,用于将一个生成器函数转换为一个上下文管理器。 上下文管理器是一种用于管理资源的机制,通过 with 语句来使用。常见的例子如文件操作,在进入 with 代码块时获取资源(打开文件),在离开 with 代码块时自动释放资源(关闭文件) 阅读全文
posted @ 2024-07-04 17:53 AngDH 阅读(241) 评论(0) 推荐(0) 编辑
摘要:reactor.spawnProcess 是 Twisted 框架中用于创建新进程的方法。 以下是对其参数的一些解释: pp:这通常是一个实现了 IProcessProtocol 接口的对象,用于处理与新创建进程的交互。 sys.executable:指定要执行的程序,这里使用了 Python 解释 阅读全文
posted @ 2024-07-04 15:49 AngDH 阅读(19) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示