- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 字符串tip
insert函数// inserting into a string#include <iostream>#include <string>int main (){ std::string str="to be question"; std::string str2="the "; std::string str3="or not to be"; std::string::iterator it; /// used in the same order
2022-03-19 11:08:30
164
原创 python安装
Could not install packages due to anEnvironmentError: [WinError 5]拒绝访问直接在install 后面加一个–user就可以了
2022-03-15 14:45:37
1043
原创 排序tip
memsetmemset (数组名, 初始值, 数组长度);sort#include<algorithm>sort(a, a+N, cmp);bool cmp(int a,int b){ return a>b; //升序}vector建立:vector<pair<int,int>> vec;插入:vec.push_back(make_pair(a,b));排序:sort(vec.begin(),vec.end(),cmp).
2022-02-28 10:37:52
149
原创 一不小心删除yum的部分文件
或【用yum安装任何东西failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try. 】1.查看依赖包rpm -qa|grep yum显示yum-plugin-fastestmirror-1.1.31-34.el7.noarchyum-metadata-parser-1.1.4-10.el7.x86_64yum-3.4.3-132.el7.centos.0.1.noarch2. 卸载这些软件包[r.
2021-06-17 21:22:57
199
原创 [pytorch] 安装完pytorch后导入torch出现OSError:[WinError 126]找不到指定的模块的解决办法
OSError:[WinError 126]找不到指定的模块文件 C:\Users\njord\anaconda3\envs\photo\lib\site-packages\torch__init__。 py,第81行,在ctypes.CDLL(dll)文件 C:CUsers\njord\anaconda3\envs\photo\lib\ctypes__init __。py中,第364行,位于 init 中self._handle = _dlopen(self._name,mode)OSError
2020-07-25 19:43:18
7229
6
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人