poj 3100 && zoj 2818 ( Root of the Problem )...
分类:
其他好文 时间:
2015-01-26 00:08:21
阅读次数:
252
[root@kaibin~]#ipython
In[1]:importplatform
In[2]:printplatform.uname()
(‘Linux‘,‘kaibin.test1‘,‘2.6.32-431.el6.x86_64‘,‘#1SMPFriNov2203:15:09UTC2013‘,‘x86_64‘,‘x86_64‘)
In[3]:dir(platform)#查看platform支持的功能:dir(platform)
In[4]:exit()简单方法:1.编译安..
分类:
编程语言 时间:
2015-01-25 22:42:35
阅读次数:
291
今天安装好了centos6.532位系统,远程安装好了MySQL,进入mysql后,有事忘了退出来,当我想起来之后,远程已经断开连接,重新连接ssh,登录MySQL,输入密码提示错误,检查服务:servicemysqldstatus[root@localhost~]#servicemysqldstatus
mysqld已死,但是subsys被锁
[root@lo..
分类:
数据库 时间:
2015-01-25 22:42:05
阅读次数:
256
树的定义和基本术语
?树:是一类重要的非线性数据结构,是以分支关系定义的层次结构。
?根:树(tree)是n(n>=0)个结点的有限集T,对于非空树,其中有且仅有一个特定的结点,称为树的根(root)。
?子树:当n>1时,其余结点可分为m(m>0)个互不相交的有限集T1,T2,……Tm,其中每一个集合本身又是一棵树,称为根的子树(subtree)。每棵子树的根结点有且仅有一个直接前驱...
分类:
编程语言 时间:
2015-01-25 22:32:16
阅读次数:
253
1、导入模块:import osfrom os import systemimport SocketServer as SS --别名2、使用Tab键:[root@cheeron python]# cat tab.py#python startup fileimport sysimport read...
分类:
编程语言 时间:
2015-01-25 22:31:09
阅读次数:
277
1. 问题描述
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example:
Given the below binary tree and sum = 22,
5
/...
分类:
其他好文 时间:
2015-01-25 21:06:41
阅读次数:
128
Linux重启命令: 1、reboot 2、shutdown -r now 立刻重启(root用户使用) 3、shutdown -r 10 过10分钟自动重启(root用户使用) 4、shutdown -r 20:35 在时间为20:35时候重启(root用户使用) 如果是通过shutd...
分类:
系统相关 时间:
2015-01-25 20:48:28
阅读次数:
219
基于SSL的mysql主从复制【背景】MySQL的协议是明文的,当复制一些重要数据时。有时需要用到SSL功能,以保证数据的安全性。【准备】准备前期准备一.主从时间一致性[root@node3support-files]#crontab-e####主节点
*/3****/usr/sbin/ntpdate172.16.0.1&>/dev/null
[root@n..
分类:
数据库 时间:
2015-01-25 19:44:22
阅读次数:
392
1、安装好wamp后,运行WampServer程序,进入MYSQL控制台; 2、进入控制台后,提示输入密码(不用输入任何密码,因为密码为空),按回车键进入; 3、输入“USE mysql;”然后回车,意思是选择mysql数据库; 4、输入“update user set password=pa...
分类:
数据库 时间:
2015-01-25 18:11:13
阅读次数:
185
1、首先手机必须详细root权限。没有的话,先去root。2、root过后若还是不能打开,下载一个R.E管理器,然后将须要打开的目录设置为可读、可写、可运行。附图:
分类:
系统相关 时间:
2015-01-25 16:24:53
阅读次数:
203