- 博客(11)
- 资源 (3)
- 收藏
- 关注
转载 Window10 terminal美化教程
参考链接:https://blog.csdn.net/zhouchen1998/article/details/107484782主要配置:(需要提前安装git bash)git、背景美化、字体(需要在github下载:CascadiaCode-2009.22.zip)上述链接均有涉及
2022-02-26 09:16:55 386
原创 拉取大型git库技巧
在项目中有需要拉取诸如tensorflow之类的大型仓库,在拉取时会有一些技巧,具体如下:方法一:git config --global core.compression 0git clone --depth 1 <repo_URI># cd to your newly created directorygit fetch --unshallowgit pull --all来自 <windows - git clone error: RPC failed; curl
2022-02-26 09:14:59 620
原创 Ubuntu16.04 python安装
背景:由于项目需要,要在Ubuntu16.04的主机上配置python3.7(系统自带的Python为python3.5),同时他不能安装anaconda输入:sudo add-apt-repository ppa:jonathonf/python-3.7坑1:注意前面的软件源是否存在:比如这个就不存在,需要重新下载。然后:sudo apt-get update && sudo apt-get install python3.7即可注:软件包会安装在/usr/lo
2022-02-26 09:12:37 807
原创 C\C++中的链接类问题整理
在C\C++的代码的初学阶段,常常会出现"XXX重定义"、”,或“XXX未定义”等问题,尤其是在初次接触比较复杂的代码的时候,各种文件关系复杂,在编译时猛然蹦出这么一个问题,乍一看让人有点摸不着头脑。为了详细介绍这个问题,下面将引用一个简单的来展示这种bug的出现,并给出相应的解决办法。以C++为例,假设有两个功能A.cpp\B.cpp,以下为A.cpp对于的.h文件(只做演示)clas...
2019-05-19 16:59:32 176
原创 Leetcode笔记整理—easy篇—66.Plus one
问题描述:Given a non-empty array of digits representing a non-negative integer, plus one to the integer.The digits are stored such that the most significant digit is at the head of the list, and each el...
2019-01-03 09:46:51 149
原创 Leetcode笔记整理—easy篇—Length of Last Word
Length of Last Word题目描述:Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, retu...
2019-01-01 16:00:15 80
原创 Leetcode笔记整理—easy篇—Remove Duplicates from Sorted Array
Remove Duplicates from Sorted ArrayHR,题目描述: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for anot
2017-05-18 17:29:27 223
原创 Leetcode笔记整理—easy篇—Valid Parentheses
**Valid Parentheses**问题简介:Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.The brackets must close in the correct order, “()” and “(
2017-04-26 11:51:02 237
原创 Leetcode算法练习-easy篇-Roman to Integer
题目简述:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.上图:本题解法:int retValue(char a){ if(a == 'M') return 1000; if
2017-04-25 22:48:26 258
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人