别整那么复杂,一二三就行了!Windows下vscode运行c++代码 随便找个目录,在目录下创建一个.cpp文件,如hello.cpp,我这是在桌面上建的文件,如图,右键run就行。用vscode运行c++代码不是很简单嘛,教程写那么多整的那么复杂,只会让入门人觉得心情烦躁,看我的。大多数电脑都是Intel 64位的,下载这个就行,安装安装。就是这个四个,不要怀疑!
将macos中conda的某一环境迁移到ubuntu中 由于我们使用macos时配置好了python环境,也进行了深度学习训练的测试,此时,我们想把代码扔到服务器上进行训练,可是有些python包和依赖包,我们并不想一一重新在服务器上训练,那怎么从本地环境前移到ubuntu中呢,如果我们直接用conda env export > environment.yml ,生成文件。通过scp传scp environment.yml dxx@192.168.xx.xx:/home/d/。传到d目录上。再直接用(已经在服务器配置好了anaconda的情况下)con
python从srt文件中只提取歌词 原始文件观察只需去掉时间戳和索引号即可和换行符’’。假定对话中不以0123456789等单字符开头new = []with open("Anne.S01E01.Your Will Shall Decide Your Destiny.WEBRip.x264-RARBG.mp4.srt", encoding="utf-8-sig") as f: for ele in f.readlines(): if ele[0] not in list('0123456789'):
关于sys.path.append(). No module named ‘d2lzh_pytorch’ sys.path的作用是查看已经安装包的路径>>> import sys>>> sys.path['', '/Users/yanyu/anaconda3/envs/gluon/lib/python38.zip', '/Users/yanyu/anaconda3/envs/gluon/lib/python3.8', '/Users/yanyu/anaconda3/envs/gluon/lib/python3.8/lib-dynload', '/Users/yanyu/
ubuntu20.04 wine64坑人的神 nnd, 今天装wine64, 想试一试能不能用迅雷,这到好,把我的ubuntu系统依赖都卸载完了,我的所有安装的app,也几乎全没了,真是一夜回到解放前,看了一下history.log,好家伙,被卸载了百八十个库,sudo apt install wine64,在ubuntu20.04上慎用,老哥们,我ca。我也不知道怎么恢复,没办法,只能安装步骤再重新把我的包包们重新安装一遍了。中间要sudo apt --fix-broken install 恢复一下,才能用apt install,太草但了。cat
How To Use AppImage in Linux如何安装appimage文件 Linux如何安装appimage文件https://itsfoss.com/use-appimage-linux/
How to autostart applications on Ubuntu 20.04 step by step instructions How to autostart applications on Ubuntu 20.04 step by step instructionsFirst step is to make sure that gnome-session-properties command is available on the Ubuntu system. To do so make sure that the gnome-startup-applications package is installed. To do
windows和Ubuntu系统的安装与调教 为了以后重新安装系统或是安装双系统不再走弯路,浪费一大把时间,我还是决定把安装历程写下来。如果是安装双系统,并且已经有了windows,就先在win启动里搜索 设备管理器,压缩卷,压缩个六七十G出来装ubuntuUbuntu桌面版本的安装为什么是桌面版本,因为你也可以选择不是桌面版本的,无图像界面的ubuntu系统,可以选择去官网下载不同版本,嫌速度慢的话也可以选择清华源看到没,就在这里输入ubuntu点这个,releases是发行版本的意思你想下载哪个,我也不拦你比如我要20.
ubuntu20.04+PicGo2.3.0 beat4+Gitee库 ubuntu20.04+PicGo2.3.0 beat4+Gitee库首先你得去好PicGo去github库,去找吧,我下的是这个下完了是这个包,右键属性,长这样,check勾上Allow这个框出来个这玩意,右键run老大哥终于跟我们见面了,点击插件设置下载这个,看清了问题是,你下载的时候,他不让你下,因为你可能没装nodejs,你要是直接sudo apt装在20.04上面,可能还会出各种错,我出错了,你出不出,我不知道。没的法子来吧,我用下面的方法成功安装了nodejs。cd
快速使用 Linux 命令 快速使用 Linux 命令man 可以查看命令帮助如man ls,但是会很罗嗦,可以安装tldr来快速查看精简版的命令帮助sudo apt install tldr用法:tldr+命令tldr lscontrast the two documentsman lsUse tldr at the first time, you need recieve objects , It’s kind of slow.tldr lsIt’s awesome!!!...
如何优雅的在Ubuntu20下使用截图软件 如何优雅的在Ubuntu20下使用截图软件非常简单第一步安装sudo apt install flameshot安装完成后桌面状态栏出现小图标第二步打开setting设置点击+号,Name和Command输入完成后就可以Set Shortcut,设置自己的快捷键,我设置的F1,用惯了snippaste了。详见flameshot的github...
replace sources with ali sources in ubuntu backup original sources.listsudo cp /etc/apt/sources.list /etc/apt/sources.list_bakAdd ali sourcessudo vi sources.listdeb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-security
ubuntu 安装中文输入法, language-pack-gnome-zh-hans: Depends: language-pack-gnome-zh-hans-base (>= 1:12.04+2 ubuntu 安装中文输入法: https://leimao.github.io/blog/Ubuntu-Gaming-Chinese-Input/
snap is bull shit now in our place, so we don‘t need to use it now till it can be more faster , Ther snap is bull shit now in our place, so we don’t need to use it now till it can be more faster , Therefore, we need to download bed of the package from website instead use snap.we just need to download deb package andsudo dpkg -i packge.deb can help us in
Java学习中的一些注意事项 1.重写与重载覆盖重写:Override,子类继承父类后,在子类中重写父类中的方法,函数名相同,参数相同重载:Overload,同一个类中,多个同名函数,函数名相同,参数不同注解:@Override,写在子类中的重写方法前,检测重写是否正确重写注意子类方法的返回值 必须 小于等于 父类方法的返回值范围 Object>String子类方法的权限必须 大于等于 父类方法的权限修饰符 public>protected>(default)>private2. 隐式转换与
安装node-npm的过程及遇到的问题 安装node-npm的过程下面是想起的安装及示例测试过程https://www.cnblogs.com/lgx5/p/10732016.html首先一定要改镜像,因为墙的问题,很多东西安装不成功,npm config set registry https://registry.npm.taobao.org --globalnpm config set disturl https://np...
关于java中类型转换和赋值和格式化输出等问题 package test_0716;public class test { public static void main(String[] args) { char a='A'; int b = 'a';//隐式类型转换,从低赋值到高时 int c = a; System.out.println(a+1); // 1 是整形,所以会转换成整型输出66. Sy...