import osimport timesource= r"out_res.txt"target_dir= r"F:\python\Doc"target=target_dir+time.strftime('%Y%m%d%H%M%S')+'.zip'zip_commond="makecab %s %....
分类:
编程语言 时间:
2014-07-23 12:39:46
阅读次数:
236
一键重置mysql的root密码的实现脚本。@echo offtitle mysql::从注册表找到Mysql的安装路径写入文件mysql.txt reg query HKLM\SYSTEM\ControlSet001\Services\MySQL | find /I "ImagePath">C:\...
分类:
数据库 时间:
2014-07-23 12:03:16
阅读次数:
280
暴力搜索 1 #include 2 3 struct node 4 { 5 int x; 6 int y; 7 }s[10000]; 8 int main() 9 {10 //freopen("input.txt","r",stdin);11 int a,b,n,n...
分类:
其他好文 时间:
2014-07-23 11:58:36
阅读次数:
293
stack的应用 1 #include 2 #include 3 #include 4 using namespace std; 5 int goal[1005]; 6 int d[1005]; 7 stacks; 8 int main() 9 {10 freopen("input.txt"...
分类:
其他好文 时间:
2014-07-23 11:57:56
阅读次数:
220
map的应用 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int main() 7 { 8 freopen("input.txt","r",stdin); 9 mapballoons;10 ...
分类:
其他好文 时间:
2014-07-23 11:57:26
阅读次数:
205
set的应用 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int main() 7 { 8 freopen("input.txt","r",stdin); 9 string s,s1;10 ...
分类:
其他好文 时间:
2014-07-23 11:56:56
阅读次数:
226
今天在学javascript的时候发现它其中有一个语法是这样的(a="haha).length;这样也能够输出haha这个字符串的长度,然而我在使用c#的时候分行读取txt文本的时候也用这个表达式,以前很好理解这样的用法,但是现在确实觉得这样的语法很奇怪,很别扭,于是就给自己找了一个理由来解释。解释...
分类:
其他好文 时间:
2014-07-22 23:15:52
阅读次数:
200
[原文链接](http://blog.csdn.net/imyang2007/article/details/7448177)在linux操作系统下,我们有时打开在windows下的txt文件,发现在windows下能正常显示的txt文件出现了中文乱码。出现这种情况的原因为两种操作系统的中文压缩方式...
一、常用远程拷贝命令1、scpscp /etc/hosts/file.txt user@remoteIP:/remotepath2、rsyncrsync -vzrtopgu --progress /etc/hosts 192.168.2.38:/etc/hostsrsync对应的服务是:xinet....
分类:
系统相关 时间:
2014-07-22 22:39:32
阅读次数:
208
mysql-uroot-e"showprocesslist"|grep-i"Locked">>locklist.txt;
forlineinawk‘{print$1}‘locklist.txt
do
echo"kill$line;">>lock_kill.sql
done查看mysql数据库表大小#!/bin/bash
database=cms
user=root
password=‘123456‘
mysql-u${user}-p${password}-e"use$d..
分类:
数据库 时间:
2014-07-22 18:15:42
阅读次数:
334