上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: #!/usr/bin/python# -*- coding:utf-8 -*- import MySQLdb db = MySQLdb.connect("127.0.0.1", "root", "123", "openDB")cursor = db.cursor()cursor.execute("S 阅读全文
posted @ 2016-07-18 13:18 Hello_2018 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashcd /home/Licw/backup_openDBNow=$(date +"%m-%d-%Y--%H:%M:%S")#echo $NowFile=$Now.sql#echo $Filemysqldump -uroot -p123 openDB | gzip > $File. 阅读全文
posted @ 2016-07-18 13:16 Hello_2018 阅读(129) 评论(0) 推荐(0) 编辑
摘要: debian-sys-maint中Debian系统对MySQL维护用的,可以理解为通过系统的某个“非常规”程序对Mysql进行备份恢复等行为时,改程序所使用的登录Mysql的账户。 这个debian-sys-maint用户只有Debian或Ubuntu服务器才有,所以如果您的服务器是Debain或U 阅读全文
posted @ 2016-07-08 21:12 Hello_2018 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 取出两个文件中不同的部分: cat 1.txt 2.txt | sort | uniq -u > 3.txt 1.txt 12345678 2.txt 6789 3.txt 123459 1. 取出两个文件的并集(重复的行只保留一份) cat file1 file2 | sort | uniq 2. 阅读全文
posted @ 2016-06-28 16:36 Hello_2018 阅读(855) 评论(0) 推荐(0) 编辑
摘要: HTTP状态码(HTTP Status Code)是用以表示网页服务器HTTP响应状态的3位数字代码。 消息(1字头) 这一类型的状态码,代表请求已被接受,需要继续处理。这类响应是临时响应,只包含状态行和某些可选的响应头信息,并以空行结束。由于 HTTP/1.0 协议中没有定义任何 1xx 状态码, 阅读全文
posted @ 2016-06-22 15:53 Hello_2018 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 注:这里用红字标记的部分表示有重复出现,括号内为替代表示方案 1.标准控件 序号 控件类型简写 控件类型 1 btn Button 2 chk CheckBox 3 ckl CheckedListBox 4 cmb ComboBox 5 dtp DateTimePicker 6 lbl Label 阅读全文
posted @ 2016-05-18 18:51 Hello_2018 阅读(764) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Data; using System.Xml; using System.Data.SqlClient; using System.Collections; using System.Configuration; namespace BookDA 阅读全文
posted @ 2016-05-16 09:14 Hello_2018 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 一.which 命令 Shell 的which 命令可以找出相关命令是否已经在搜索路径中。 $ which git/usr/bin/git 二.whereis 命令 whereis 命令搜索更大范围的系统目录,和Shell 的搜索路径无关。 $ whereis gitgit: /usr/bin/gi 阅读全文
posted @ 2016-05-13 15:35 Hello_2018 阅读(611) 评论(0) 推荐(0) 编辑
摘要: centos安装 python-dev包提示No package python-dev available: 出现此问题的原因是python-dev的包在centos的yum中不叫python-dev,而是python-devel. 所以使用下面的命令即可安装python-dev: 阅读全文
posted @ 2016-05-12 13:58 Hello_2018 阅读(10722) 评论(0) 推荐(1) 编辑
摘要: 正则表达式中,group()用来提出分组截获的字符串,()用来分组 以上实例执行结果如下: 1. 正则表达式中的两组括号把匹配结果分成两组 group() 同group(0)就是匹配正则表达式整体结果 group(1) 列出第一个括号匹配部分,group(2) 列出第二个括号匹配部分。 2. 没有匹 阅读全文
posted @ 2016-05-12 08:17 Hello_2018 阅读(759) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页