- 博客(21)
- 收藏
- 关注
原创 linux修改执行路径.bashrc,并使其生效方法
vim ~/.bashrc 查看系统环境变量source ~/.bashrc使其生效若出现:bash: er: command not found...或生效不了则关闭当前终端,重新打开一个,输入source ~/.bashrc即可生效
2022-06-13 19:18:46
4858
原创 linux 命令行查找替换文件中的内容
一句话即可sed -i ‘s/str1/str2/g’ filenamestr1: 被替换的字符串str2: 替换成的字符串filename 所操作的文件
2022-06-08 10:46:16
572
原创 Makefile:26: *** missing separator. Stop.解决办法
最近在学着写Makefile文件,但是执行make命令的时候,出错了Makefile:26: *** missing separator. Stop.这是Makefile文件。解决办法:在第26-28以及31和33行之前将空格删掉,按下tab键ps:自己实在是太菜了...
2022-01-07 10:48:31
1507
原创 undefined reference to `MPI_Init‘ 解决办法
使用hipcc编译可执行文件时,出现undefined reference to `MPI_Init'等一系列找不到MPI库函数的错误导致编译中断解决办法:在编译命令中加入MPI的path/opt/rocm/bin/hipcc -I/opt/rocm/include -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event
2021-07-06 20:01:00
5787
原创 centos安装gcc+llvm架构+clang编译器的方法
centos下安装gcc的方法连接到远程服务器1.从官网下载想要安装的gcc版本 http://ftp.gnu.org/gnu/gcc/我下载的gcc-5.5.0版本,没有下载最新的,师兄说最好下载7.0以上的,不过5-5-0版本也能支持llvm,所以就没换。下载之后上传到远程服务器上。2.解压该文件tar -xvf gcc-5.5.0.tar.xz关于这条命令之前输入的是tar xjvf gcc-5.5.0.tar.xz 结果一直报错,上网查了之后改成了-xvf才好...
2020-12-18 20:29:59
1235
1
原创 clang编译器常用操作命令
使用clang编译器,常用编译命令选项先在某个目录下使用vim编译器建一个.c文件,方法:vim hello.c //生成一个.c文件进入编辑输出值后Esc-> :wq编辑内容:#include <studio.h>int main(){printf("hello world");return 0;}#clang hello.c#ls //查看该目录下文件#./a.out //执行该文件输出值 ./表示在当前目录,a.out为可执行程序文...
2020-12-18 19:55:38
18650
4
转载 PyTorch实现基于卷积神经网络的面部表情识别
基于卷积神经网络的面部表情识别(Pytorch实现)----台大李宏毅机器学习作业3(HW3)一、项目说明 给定数据集train.csv,要求使用卷积神经网络CNN,根据每个样本的面部图片判断出其表情。在本项目中,表情共分7类,分别为:(0)生气,(1)厌恶,(2)恐惧,(3)高兴,(4)难过,(5)惊讶和(6)中立(即面无表情,无法归为前六类)。所以,本项目实质上是一个7分类问题。数据集介绍: (1)、CSV文件,大小为28710行X2305列; (2)、在28710行中,其
2020-12-12 19:41:23
5349
1
原创 -bash:vim: command not found解决办法
在linux命令行中输入vim+文件查看编辑时提示:-bash:vim: command not found 解决办法如下:1. 输入 rpm -qa|grep vim命令,查看返回结果,如果返回的是三条结果:vim-minimal-7.0.109-6.el5vim-common-7.0.109-7.2.el5vim-enhanced-7.0.109-7.2.el5则说明vim已经正确安装,如果缺少一条,则需要单独安装2.单独安装某一条:如果少了上面三条的某一条,比如 vim-e..
2020-09-16 17:42:36
27745
1
原创 在Vmware上安装centos虚拟机界面显示字体太小
文章参考https://www.cnblogs.com/see-you/p/13065031.html在Vmware上安装centos虚拟机界面显示字体太小在系统用户的命令行窗口输入cd /lib/kbd/consolefontssetfont latarcyrheb-sun32就好了 第一行是查看字体,第二行是修改字体...
2020-09-14 17:42:23
9135
原创 Harmonic Number
Harmonic Number In mathematics, the nth harmonic number is the sum of the reciprocals of the first n natural numbers:In this problem, you are given n, you have to find Hn.Input
2017-08-14 21:51:31
438
原创 饭卡
饭卡Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 31199 Accepted Submission(s): 10714Problem Description电子科大本部食堂的饭卡有一种很诡异的设计,
2017-08-04 16:10:32
357
原创 Proud Merchants
Proud MerchantsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 6803 Accepted Submission(s): 2840Problem DescriptionRecently, iSe
2017-08-04 15:46:54
439
原创 最大连续子序列
最大连续子序列Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 33729 Accepted Submission(s): 15228Problem Description给定K个整数的序列{ N1, N2, .
2017-08-04 14:52:36
198
原创 B. Five-In-a-Row
B. Five-In-a-Rowtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice and Bob play 5-in-a-row game. They ha
2017-07-21 14:29:46
825
原创 小希的迷宫
小希的迷宫Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 51951 Accepted Submission(s): 16206Problem Description上次Gardon的迷宫城堡小希玩了很久(见P
2017-07-21 09:49:21
320
原创 find the most comfortable road
find the most comfortable roadTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7640 Accepted Submission(s): 3218Problem Description
2017-07-21 09:29:18
264
原创 Out of Hay
Out of HayTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 17495 Accepted: 6886DescriptionThe cows have run out of hay, a horrible event that must be remed
2017-07-21 08:33:56
254
原创 Find The Multiple
Find The MultipleTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 32537 Accepted: 13604 Special JudgeDescriptionGiven a positive integer n, write a pro
2017-07-20 19:44:48
262
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅