摘要:
import openai import time import os from multiprocessing import Pool, cpu_count from tqdm import tqdm openai.api_key = "123123" PROMPT = """请从文章中抽取出所有 阅读全文
摘要:
https://mp.weixin.qq.com/s/VOgNPEcDhmhMuDdy_HL0BA from deepspeed.ops.zero_offload import FP16ZeROOffloadEngine # Initialize the ZeRO-Offload engine ze 阅读全文
摘要:
int *const p:常量指针,指向不能变,可以解引用修改值; const int *p: 指向常量的指针,指向能变,不可以解引用修改修改值,但是可以通过修改指向的变量,进行改变。 int* p1[5]: 指针数组,数组包含5个元素,每个元素都是int类型的指针 int (*p2)[5]: 数组 阅读全文
摘要:
import json import numpy as np from labelme import utils import cv2 import os def create_file(file): if not os.path.exists(file): os.mkdir(file) def c 阅读全文
摘要:
什么时候使用 used 数组,什么时候使用 begin 变量 可能会疑惑什么时候使用 used 数组,什么时候使用 begin 变量。简单总结一下: 排列问题,讲究顺序(即 [2, 2, 3] 与 [2, 3, 2] 视为不同列表时),需要记录哪些数字已经使用过,此时用 used 数组; 组合问题, 阅读全文
摘要:
class Solution { void quickSort(vector<string>& strs, int l, int r) { if (l >= r) return; int i = l, j = r; while (i < j) { while(strs[j] + strs[l] >= 阅读全文