05 2012 档案
摘要:alter proc getName@userName varchar(50)asif(@userName = 'xsm') beginselect userName from Table_Test where userName=@userName;endelse beginselect count(*) from Table_Test;endreturnalter proc getWeek@weeks varchar(50)asdeclare @i int, @weekName varchar(50)set @i=0set @weekName='Sunday'
阅读全文
摘要:str = '[111]dsfdsd[33333]'pattern = r"(\[.*?\])"; guid = re.findall(pattern,str ,re.M) if(len(guid)>0): guid = guid[0] guid = guid.replace('[','').replace(']','')
阅读全文
摘要:#-*- MailClassLibrary -*-import smtplibimport osimport sysfrom email.header import Header from email.mime.text import MIMETextfrom email.mime.multipart import MIMEMultipart class MailClassLibrary: def __init__(self, mailType): self.mailSendType = mailType sender = "xsmhero@aa.com" receiver
阅读全文
摘要:替换exe程序图标dll/// <summary> /// 替换程序图标 /// </summary> /// <param name="exe">程序</param> /// <param name="ico">图标</param> /// <returns></returns> private bool setAppIco(string exe, string ico) { try { UpdateExeIco.UpdateExeIco exeIco =
阅读全文