单列模式

使用模块 myclass.py class myclass( ): def fun(self): pass instance = myclass() call.py import myclass a = myclass.instance __new__

iohannes iohannes Published on 2025-03-17

导入上级目录包

整体目录结构 |-- comm | |-- prim_joint_set.py | |-- prim_position_set.py |-- app | |-- entity | | |-- init.py | |-- http_srv.py app.entity.__init__py import

iohannes iohannes Published on 2025-03-17

东方财富获取k线数据

url https://89.push2his.eastmoney.com/api/qt/stock/kline/get?secid=1.600000&fields1=f1,f2,f3,f4,f5,f6&fields2=f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,

iohannes iohannes Published on 2025-03-17

动态添加属性和方法

person.py class Person(): def __init__(self,name): self.name = name main.py from person import Person li = Person('李') # 动态添加属性 li.age = 20 prin

iohannes iohannes Published on 2025-03-17

多个isaac sim容器

sudo docker run --name isaac-sim-0 \ -itd --gpus all -e "ACCEPT_EULA=Y" \ --entrypoint /bin/bash \ -p 42020:22 \ -p 48020:48010 \

iohannes iohannes Published on 2025-03-17
c++

反转字符串

char* reverse_string(char *s, int size) { char *p = s; for (int i = 0; i < size; i++) p++; if (p != s) { for (char *q

iohannes iohannes Published on 2025-03-17

高并发模型

Actor模型 在Actor模型中主角是actor,类似一种worker。 Actor彼此之间直接发送消息,不需要经过什么中介,消息是异步发送和处理的. 组

iohannes iohannes Published on 2025-03-17

高水平决策咨询报告

内容出发点 李惠武长期从事广东省政府政策研究,他从决策制定者角度就高校研究人员如何掌握国际形势、政府决策所需、Ñ

iohannes iohannes Published on 2025-03-17

概率的计算

随机事件 随机事件A是指可能发生也可能不发生的事件 随机事件A发生的反面称为A的对立,记为\bar{A}

iohannes iohannes Published on 2025-03-17

国内Ubuntu安装docker

安装docker sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://mirrors.aliy

iohannes iohannes Published on 2025-03-17
Previous Next