自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 资源 (3)
  • 收藏
  • 关注

原创 Git-入门教程(一)-什么是Git

0.摘要本文主要介绍Git的概念、特点和功能。 1.什么是Git分布式版本控制系统。所谓分布式,指的是每一位开发者都能在各自的机器上拥有一个完整的版本库。每个开发者通过克隆(git clone)操作,可以从中央服务器上拷贝一个完整的Git仓库到本地机器上,整个开发过程都不需要联网,直到最终提交代码的时候。而与分布式相对的是集中式,版本库只存放在中央服务器上。当开始工作的时候...

2018-10-30 21:02:37 381

原创 正常网络连接下无法ping通或单向ping通问题

0.前言在校园网的环境下,MacOS可以ping通Windows,但Windows无法ping通MacOS。单向ping通,表明了网络连接不存在问题。之后,尝试了Windows与Windows之间ping,结果也无法ping通。 1.解决关闭Windows防火墙Windows防火墙默认情况下,阻止了外部机器ping本机,关闭防火墙即可。关闭方法:https://blog...

2018-10-29 11:20:00 5443

原创 windows-关闭防火墙

1.打开控制面板,进入网络和Internet选项: 2.点击网络和共享中心3.点击左下角Windows防火墙 4.点击启用或关闭Windows防火墙5.选择关闭防火墙选项6.关闭退出即可...

2018-10-29 11:07:55 3522

转载 ssh-简介

在简书上看到一篇非常好的博文,这里不在赘述,附上链接:https://www.jianshu.com/p/59c4fc2684be

2018-10-28 21:26:32 93

原创 nest-基于MacOS-Python3环境安装

0.摘要NEST是一款模拟神经网络模型的模拟器,它关注的是神经系统的动力学、大小和结构,而不是单个神经元的形态学。NEST平台是任意尺寸的脉冲神经网络的理想选择,例如:信息处理模型,例如在哺乳动物的视觉或听觉皮层, 网络活动动力学模型,例如层状皮层网络或平衡随机网络, 学习和可塑性的模型。本文主要介绍在python3环境下安装nest模拟器,python2的用户可以参考本文内容,...

2018-10-25 22:41:09 999 1

原创 HomeBrew-换源

0.摘要主要针对HomeBrew下载速度慢的问题,本文介绍了HomeBrew换源方法。配置过程中在网上查找到了更加详细的教程,提供给各位读者作进一步学习:https://musoucrow.github.io/2017/03/29/brew_changing/ 1.更换清华源$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mir...

2018-10-25 20:30:47 113

原创 python-查找第三方库路径-site-packages

Linux/Mac:在terminal中运行python,先import一个已经安装的库,然后输出:库.__file__。其中,/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/就是所求路径。Windows:在cmd中运行python,先import一个已经安装的库,然后输...

2018-10-23 21:58:41 5899 1

原创 pip-版本切换-Mac

0.摘要安装了Python3,使用pip安装软件的时候出现了问题,查看报错信息,发现pip的版本指向的竟然是python2。重装pip失败后,找到了一种可行的方法。 1.查看pip版本并修改pip -V#查看pip版本,发现pip指向的是python2.7which pip#查看pip位置which python#查看python2位置which pytho...

2018-10-23 17:21:42 5917 2

原创 python-使用列表创建字典

0.摘要本文主要介绍如果将两个列表作为键-值,快速创建字典。 1.使用列表快速生成字典的#推荐方式:key_list = ['D', 'U', 'B', 'X', 'G', 'M', 'K', 'Y', 'H', 'W']value_list = [68, 85, 66, 88, 71, 77, 75, 89, 72, 87]dict1 = dict(zip(key_lis...

2018-10-22 19:49:02 30025

原创 python3-实现atoi()函数

0.摘要本文介绍c语言中的atoi函数功能,并使用python3实现。 1.atoi()函数atoi (表示 ascii to integer)是把字符串转换成整型数的一个函数。函数定义形式:int atoi(const char *nptr);函数会扫描参数 nptr字符串,跳过前面的空白字符(例如空格,tab缩进),直到遇上数字或正负符号才开始做转换;在遇到非数字或...

2018-10-22 16:21:10 7208

原创 LeetCode-45. Jump Game II

0.原题Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Your goal...

2018-10-21 13:26:49 127

原创 LeetCode-55. Jump Game

0.原题Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determine...

2018-10-18 22:17:51 106

原创 LeetCode-122. Best Time to Buy and Sell Stock II

0.原题Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete as many transactions as you like (i.e., ...

2018-10-18 20:58:57 222

原创 LeetCode-38. Count and Say

0.原题The count-and-say sequence is the sequence of integers with the first five terms as following:1. 12. 113. 214. 12115. 1112211 is read off as "one 1" or 11.11 is rea...

2018-10-18 17:39:19 85

原创 LeetCode-121. Best Time to Buy and Sell Stock

0.原题Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (i.e., buy one and sell one share of the s...

2018-10-18 16:21:03 108

原创 LeetCode-402.Remove K Digits

0.原题Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible.Note:The length of num is less than 10002 and will b...

2018-10-17 13:09:14 156 1

原创 python-类-从入门到精通(三)

0.摘要前两篇文章已经介绍了类的创建与使用,本文主要介绍类的导入、类的编码风格和标准库中类的使用。 1.导入类一个模块中只存放一个类:当我们的程序越来越复杂的时候,为了清晰地展现工程文件结构,通常把代码量较大的类存放在单独的模块中。当我们需要使用的时候,再从该模块中导入这个类。比如,我们把Car()这个类存放在car.py这个模块中,当我们在其他模块中调用Car()的时候,...

2018-10-11 16:20:02 129

原创 python-类-从入门到精通(二)

0.本文内容--继承在上一篇博客中,讲述了python3类的基本使用方法,本篇博客着重介绍类的继承特性。在编写类的时候,我们不一定都要从空白开始。如果我们正在编写的类,实际上是另外一个已经存在的类的特殊版本,那么我们就可以使用类的继承。B类继承A类后,B类将自动获取A类的所有属性和方法,A类称为父类,B类称为子类。子类及继承了父类的所有属性和方法,同时还可以定义自己的属性和方法。而继承...

2018-10-10 22:22:17 129

原创 python-类-从入门到精通(一)

0.什么是类类(Class)是面向对象程序设计(OOP,Object-Oriented Programming)实现信息封装的基础。类是一种用户定义类型,也称类类型。每个类包含数据说明和一组操作数据或传递消息的函数。类的实例称为对象。面向对象编程是最有效的软件编写方法之一。在面向对象编程中,我们用类定义一类对象的通用行为,而用类创建的对象则都具有这种通用行为,然后可以根据需要赋予每个对象独...

2018-10-08 21:43:37 136

原创 python-random模块详解

0.摘要本文主要介绍random模块的各种方法,并用python3做功能展示。 1.random.random()产生一个位于[0,1)区间的随机数。random.random() #产生一个[0,1)的数10 * random.random() #产生一个[0,10)的数 2.random.uniform(a,b)这个方法的官方解释很高深,理解不了:uni...

2018-10-07 17:06:39 1030 1

原创 递归-从斐波那契数列(Fibonacci sequence)问题看剪枝重要性

0.摘要本文主要通过对斐波那契数列算法复杂度的分析,展示剪枝在递归中的重要性。 1.递归求解斐波那契数列问题的时间复杂度。回顾一下斐波那契数列问题:斐波那契数列指的是这样一个数列:1、1、2、3、5、8、13、21、34、……在数学上,斐波纳契数列以如下被以递推的方法定义:F(1)=1,F(2)=1, F(n)=F(n-1)+F(n-2)(n>=3,n∈N*)这是一个...

2018-10-06 22:29:45 1021 1

原创 python-基础语法-字典

0.摘要本文主要介绍python3中字典的用法,包括创建、访问、添加、修改、删除、遍历。1.创建字典my_dict = {} #创建一个空字典python = {'Version':'3.6'} #创建一个非空字典coordinate = {'x':0,'y':10}或者借助dict函数创建创建:my_dict = dict() #创建一个空字典coordina...

2018-10-06 21:16:41 261

原创 LeetCode-198. House Robber

0.原题You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent...

2018-10-06 19:00:31 137

原创 python-reduce函数

0.摘要本文主要介绍functool模块中的reduce函数,并使用reduce实现阶乘等操作。 1.reduce函数官方释义:Apply a function of two arguments cumulatively to the items of a sequence,from left to right, so as to reduce the sequence to...

2018-10-06 15:08:07 198

原创 python-基础语法-lambda表达式

0.摘要本文主要介绍lambda表达式的作用与使用方法。 1.lambda表达式用途:用一个表达式,替换一个简单的匿名函数。lambda表达式可以实现函数的功能,并不需要定义函数名称。可以快速实现函数功能,提高编程效率,保证代码的整洁性。用法:lambda 变量名 : 表达式 2.程序示例简单用法:my_add = lambda x,y : x + ypri...

2018-10-06 14:53:51 154

原创 算法-广度优先、深度优先和等代价搜索

0.摘要本文主要介绍三种盲目搜索算法:广度优先、深度优先和等代价搜索。首先,介绍几个之后会用到的概念:OPEN表:存放未扩展节点的表格CLOSE表:存放以扩展节点的表格 1.宽度优先搜索宽度优先搜索(BFS,Breadth First Search。 )又称广度优先搜索,是最简便的图的搜索算法之一。定义:如果搜索是以接近初始节点的程度一次扩展节点的,那么这种搜索就叫...

2018-10-05 17:53:40 17740 2

原创 python-基础语法-zip()函数

0.函数功能作用:在一个或多个对象中,将对应的元素打包成一个元组参数:以可迭代的对象作为参数返回值:在python3中,返回这些元组组成的对象;在python2中,返回这些元组组成的列表注意:如果各个迭代器的元素个数不一致,则返回列表长度与最短的对象相同。利用 * 号操作符,可以将元组解压为列表。class zip(object) | zip(iter1 [,iter2 ...

2018-10-04 15:59:05 2369 1

原创 LeetCode-130. Surrounded Regions

0.原题Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'.A region is captured by flipping all 'O's into 'X's in that surrounded region.Example:X X X X...

2018-10-04 14:38:22 103

原创 LeetCode-200. Number of Islands

0.原题Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may ...

2018-10-03 21:58:37 186

原创 python-numpy.random.randint()

numpy.random.randintnumpy.random.randint(low, high=None, size=None, dtype='l')Return random integers from low (inclusive) to high (exclusive).Return random integers from the “discrete uniform” d...

2018-10-03 21:01:58 670

原创 LeetCode-37. Sudoku Solver

0.原题Write a program to solve a Sudoku puzzle by filling the empty cells.A sudoku solution must satisfy all of the following rules:Each of the digits 1-9 must occur exactly once in each row. Eac...

2018-10-02 22:30:45 76

原创 python-使用list * n 生成多维数组和使用for循环生成多维数组的区别

0.摘要本文主要介绍生成二维数组的方法,同时解释使用list * n 方式所存在的问题,并提出解决方案。1.从一个问题说起先看一段代码:list0 = [1,2,3]list1 = [list0] * 3print('list1 is :',list1)list1[0][0] = 999print('new list1 is :',list1)结果:程序...

2018-10-02 17:28:57 9604 2

原创 LeetCode-17. Letter Combinations of a Phone Number

0.原题Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) ...

2018-10-01 23:20:38 95

原创 LeetCode-51.N-Queens

0.原题The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, return all distinct solutions to the n-queens puzzle...

2018-10-01 10:36:05 85

官网文档_在 Windows 上安装 TensorFlow  _  TensorFlow

本文为在 Windows上安装 TensorFlow的官方文档。 提供给被墙用户参考用。

2018-09-10

官网文档_在Ubuntu上安装 TensorFlow  _  TensorFlow

本文为在 Ubuntu上安装 TensorFlow的官方文档。 提供给被墙用户参考用。

2018-09-10

官网文档_在 macOS 上安装 TensorFlow  _  TensorFlow

本文为在 macOS 上安装 TensorFlow的官方文档。 提供给被墙用户参考用。

2018-09-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除