摘要:
STL排序 sort(s.begin(), s.end()); STL vector 初始化 vector<string> strs = {"dog","racecar","car"}; string 添加单个字符 sameAlpha[strI].append(1, strs[i][strI]); 阅读全文
摘要:
安装指令 sudo apt-get install software-properties-common sudo add-apt-repository ppa:x2go/stable sudo apt-get update sudo apt-get install x2goserver x2gos 阅读全文
摘要:
转自: https://blog.csdn.net/wujunlei1595848/article/details/87027871?utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromMa 阅读全文
摘要:
https://blog.csdn.net/qq_42067550/article/details/106871772 https://www.youtube.com/watch?v=qI0vyfR2_Rc&list=PLvOO0btloRnsiqM72G4Uid0UWljikENlU&index= 阅读全文
摘要:
####1. vector vector<T> v; //采用模板实现类实现,默认构造函数 vector(v.begin(), v.end()); //将v[begin(), end())区间中的元素拷贝给本身。 vector(n, elem); //构造函数将n个elem拷贝给本身。 vector 阅读全文
摘要:
假如输入数据是4维的 a = torch.randn(3, 4, 5, 6) y = a[..., 0] # 取第四个维度的第0个 上面操作等同于 y = a[:, :, :, 0] 阅读全文
摘要:
code from https://github.com/kenziyuliu/MS-G3D/blob/master/ntu_visualize.py 函数plt: https://blog.csdn.net/sinat_36219858/article/details/79800460 http: 阅读全文
摘要:
问题: -bash: ./tools/dist_train.sh: Permission denied 解决方法: chmod 777 ./tools/dist_train.sh 阅读全文
摘要:
#复制文件: shutil.copyfile("oldfile","newfile") #oldfile和newfile都只能是文件 shutil.copy("oldfile","newfile") #oldfile只能是文件,newfile可以是文件,也可以是目标目录 #复制文件夹: shutil 阅读全文
摘要:
# 加载数据成字典(读) with open(annotations_file, "r") as fa: annotations = json.load(fa) # 上载数据成序列(写) with open("annotation/train_annotation.json", 'w') as fp 阅读全文