码迷,mamicode.com
首页 >  
搜索关键字:python email from to    ( 191911个结果
python简单学生成绩管理系统
#!/usr/bin/env python#manage the grade of studentdef init(date): date=[[],[],[],[],[]] return datedef store(date): ID=raw_input('Please your ...
分类:编程语言   时间:2015-09-25 18:27:08    阅读次数:428
summit SMT中flowgenerator服务无法启动 failed to start subscription from ds
【问题描述】在将dev01的smt的服务和配置导入到dev02的过程中,出现了dev02的flowgenerator服务无法启动的现象,查看日志由如下输出: failed to start subscription from ds 0 in order to do catch up,static e...
分类:其他好文   时间:2015-09-25 18:06:12    阅读次数:146
mysql替换制定的内容的 类似正则表达式的功能
content= 'asnfojassozxpdsgdspdps神龙架谁骄傲的骄傲搜ID飞机扫'SELECT content FROM test WHERE id =1吧zx替换成ZZZZUPDATE test SET content = REPLACE(content,'zx','ZZZZ') ....
分类:数据库   时间:2015-09-25 18:04:29    阅读次数:158
Python字典的入门案例
查看python版本:[root@localhost ~]# python -VPython 2.7.51.基本的字典操作案例1:简单电话本实现[root@localhost ~]# vim addresslist.py # -*- coding: utf-8 -*- #一个简单的数据库通讯录#字典...
分类:编程语言   时间:2015-09-25 17:51:48    阅读次数:163
python访问redis数据库
#!/usr/env/bin?python import?redis r=redis.Redis(host=‘localhost‘,port=6379,db=0) with?r.pipeline()?as?pipe: ????while?1: ????????try: ????????????pipe.watch(‘O...
分类:数据库   时间:2015-09-25 16:38:05    阅读次数:154
三个监控小脚本
监控mysql主从,结合计划任务发邮件告警。#!/bin/bash#checkmysqlslavestatusmysql_path=/wqdata/mysql/bin/mysqluser="root"password="tze@2011"email=110@1.comdate=`(date+%y-%m-%d--%H:%M:%S)`ip=$(/sbin/ifconfig|grep"inetaddr"|grep-v"127.0.0.1"|awk‘{print$2;}‘|awk-F..
分类:其他好文   时间:2015-09-25 16:33:53    阅读次数:186
Python基础教程项目1:即使标记源码
util.py #?coding=utf-8 __author__?=?‘twocold‘ #?文本块生成器 def?lines(file): ????for?line?in?file:?yield?line ????yield?‘\n‘ def?blocks(file): ????block?=?[] ????...
分类:编程语言   时间:2015-09-25 13:26:51    阅读次数:174
简单的hibernate sql语句查询
对象查询 ???????????? public User findUserByIdUser(String id) { // TODO Auto-generated method stub String sql="select * from T_USER t where t.ID=‘"+id+"‘"; SQLQuery sqlQuery = this.get...
分类:数据库   时间:2015-09-25 13:26:37    阅读次数:189
python ip整数与字符串转换
import socket,struct,sys,getopt,string def doAnalysis(ifile, ofile): infile = open(ifile, ‘r‘) onfile = open(ofile, ‘w‘) for line in infile.readlines(): info = line.split(‘\t‘)...
分类:编程语言   时间:2015-09-25 13:25:41    阅读次数:186
Poj1287--Networking(最小生成树)
题目:http://poj.org/problem?id=1287题目不多说, 最小生成树模版题。#include #include #include #include using namespace std;struct NoThing{ int from, to, val;} edge[1...
分类:Web程序   时间:2015-09-25 13:07:11    阅读次数:235
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!