摘要:
1、获取线程ID(线程是操作系统中最小的调度单位) import threading t = threading.currentThread() #线程ID print('Thread id : %d' % t.ident) #线程NAME print('Thread name : %s' % t. 阅读全文
posted @ 2022-12-28 10:12
365/24/60
阅读(195)
评论(0)
推荐(0)
Git学废了吗 阅读全文
查看远程服务器编码locale,查看语言环境 设置utf-8即可 阅读全文
基础介绍,后5项为基础5元素 Q = ['q0', 'q1', 'q2', 'q3'] # 状态集合 States,共 N 种状态 V = ['v0', 'v1'] # 观测集合 Observations,共 M 种观测值 I = [ 'i{}'.format(i) for i in range(5 阅读全文
编译 将目标文件预处理、汇编、编译并链接形成可执行文件 g++ xxx 默认输出 a.out g++ xxx -o yyy 指定输出到 yyy 数据变量 数组 vector容器使用: #include vectora 创建一个动态数组a,a的默认初值为0 vectorb(a) 将a中的元素复制到b中 阅读全文