tech
Python100天-多进程多线程编程
·357 字
多进程示例 # from multiprocessing import Process from os import getpid from random import randint from time import time, sleep def download_task(filename): print
Python100天 文件操作
·959 字
文件操作模式 # 操作模式 具体含义 r 只读(默认) w 写入,会清空之
Python100天-面向对象编程
·1293 字
面向对象 # 把一组数据结构和处理它们的方法组成对象(objec
Python100天-数据类型
·2137 字
字符串 # 获取字符串长度 # s = 'abc中文' #
Markdown_syntax
·1119 字
Markdown DEMO # 1.文本 # 倾斜 *文本* 文本 粗体 **文本** 文本 倾斜+粗
Protobuf语法
·441 字
官方文档 # https://protobuf.dev/programming-guides/proto3/ protobuf 基本类型 # protobuf 类型 Go 类型 Java 类型 Python 类型 PHP 类型 描述 double
Grpc学习
·168 字
依赖 # protoc wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip unzip protoc-21.12-linux-x86_64.zip cd protoc-21.12-linux-x86_64 ./configure make sudo make install protoc-gen-go、p
服务器diskio过高问题排查
·209 字
iostat # iostat -x [间隔秒数] [监控多少秒] $ iostat -x 1 10 avg-cpu: %user %nice %system %iowait %steal %idle 1.33
本机PHP版本管理
·218 字
本地配置PHP版本管理 # 环境: wsl ubuntu22.04 安装 software-properties-common sudo apt-get install -y software-properties-common 添加镜像源
Go类型之map
·255 字
负载因子6.5 # map引用传递 # map作为参数传递给函数时,