- 博客(17)
- 收藏
- 关注
原创 mysql8.0修改root密码
利用mysql -u root 进入数据库后1、use mysql; update user set authentication_string='' where user='root'2、ALTER user 'root'@'localhost' IDENTIFIED BY 'Cliu123#'3、之前使用SET PASSWORD FOR root@localh...
2018-09-05 19:45:50
1533
原创 正则表达式
?匹配零次或一次前面的分组。*匹配零次或多次前面的分组。+匹配一次或多次前面的分组。{n}匹配 n 次前面的分组。{n,}匹配 n 次或更多前面的分组。{,m}匹配零次到 m 次前面的分组。{n,m}匹配至少 n 次、至多 m 次前面的分组。{n,m}?或*?或+?对前面的分组进行非贪心匹配。^spam 意味着字符串必须以 spam 开始。spam$意味着字符串必须以 spam 结束。.匹配所有字
2018-01-15 20:31:33
250
原创 ubuntu下安装神经网络绘图工具Graphviz
1、Ubuntu下安装graphvizsudo apt-get install graphviz2、神经网络的绘图digraph G { rankdir=LR splines=line nodesep=.05; node [label=""]; subgraph cluster_0 { color=white;
2017-11-14 21:43:00
1010
原创 python 遇到的问题(一)
1、TypeError: ‘module’ object is not callablePython导入模块的方法有两种:import module 和 from module import,区别是前者所有导入的东西使用时需加上模块名的限定,而后者不需要。2、Add Jupyter to the interpreter of the current project.pip i
2017-11-14 21:29:14
847
原创 ubuntu16.04修改Python默认版本
Ubuntu16.04 默认python版本是Python2,但也可以修改默认的Python版本 sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100 sudo update-alternatives --install /usr/bin/python python /usr/bin/pyth
2017-10-03 23:09:47
1918
原创 PyCharm连接GitHub配置使用
1、首先配置SSH连接GitHub 2、PyCharm与Github连接(1)设置GitHub账号和密码:File->Settings->Version Control->GitHub;填写github账号和密码设置完毕点击Test按钮,如果弹出Connection successful 对话框,则说明github账号和密码设置正确。(2)设置Git:选择git,点击Test弹出successfu
2017-10-03 22:54:53
1908
转载 python 模块学习(一)
1、glob :一个文件操作相关的模块用它可以查找符合特定规则的文件路径名。查找文件只用到三个匹配符:”*”, “?”, “[]”。(1)”*”匹配0个或多个字符;(2)”?”匹配单个字符;(3)”[]”匹配指定范围内的字符,如:[0-9]匹配数字。
2017-09-16 14:57:22
278
原创 Ubuntu16.04 安装skimage
1、先安装需要的依赖文件: $ sudo apt-get install python-numpy $ sudo apt-get install python-scipy $ sudo apt-get install python-matplotlib 2、安装skimage$ sudo pip install scikit-image 3、测试是否安装skimageim
2017-09-16 14:51:04
8074
转载 tensorflow笔记: 转载的资源
这些是转载的一些资源:1、Tensorflow学习笔记2:About Session, Graph, Operation and Tensor http://www.cnblogs.com/lienhua34/p/5998853.html 2、 TensorFlow学习(三):Graph和Session http://blog.youkuaiyun.com/xierhacker/article/detai
2017-09-03 11:34:55
251
原创 tensorflow笔记: 遇到的问题
1: tf.Session()和tf.InteractiveSession()的区别 1. tf.InteractiveSession()与tf.Session()最大的不同在于tf.InteractiveSession()允许在没有指定会话对象的情况下运行变量。 2. tf.Session()使用with..as..后可以不使用close关闭对话,而调用tf.InteractiveSession
2017-09-03 10:38:13
285
原创 tensorflow笔记:常用函数
常用函数1、tf.constanttf.constant(value,dtype=None,shape=None,name=’Const’,verify_shape=False) 作用:创建一个常量tensor 参数: value: 一个dtype类型(如果指定了)的常量值或list。 如果value是一个list,len(value)不能够超过shape参数指定的大小(如果已指定)
2017-09-03 10:28:21
313
原创 Ubuntu 截图工具gnome-screenshot
介绍一下Ubuntu自带的截图工具gnome-screenshot$ gnome-screenshot -h #查看这个工具的帮助命令用法: gnome-screenshot [选项…] #对屏幕截图 帮助选项:-h, --help #显示帮助选项--help-all #显示全部帮助选项--help-gtk #显示 GTK+ 选项应用程序选项:-
2017-09-02 23:01:02
569
原创 配置SSH连接GitHub
1、先安装ssh,一条命令搞定$ sudo apt-get install openssh-server2、生成秘钥$ ssh-keygen -t rsa -C "your email" 若不需要密码,连续三次回车,在~/.ssh/目录下得到两个文件:id_rsa和id_rsa.pub。3、登陆Github,将id_rsa.pub中的公钥内容全部复制到github上。点击右上角账号头像的“▼”→
2017-09-02 16:46:52
289
原创 git 删除远程仓库中的文件或者文件夹
git rm --cached "文件路径",不删除物理文件,仅将该文件从缓存中删除;git rm --f "文件路径",将该文件从缓存中删除,一并删除物理文件假如你想要删除远程仓库中的文件或文件夹,可以使用:git rm -r --cached a/2.txt // 删除a目录下的2.txt文件 git commit -m "删除a目录下的2.txt文件" // co
2017-09-02 16:11:44
582
原创 对软件工程的简要认识
对软件工程的简要认识 实验楼网站上的实验报告: 实验1:编写一个hello world小程序 实验2:命令行菜单小程序V1.0
2016-11-20 12:37:22
1910
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人