#!/usr/bin/envpython
#encoding:utf-8
importMySQLdb
tell_file=‘/home/test/liyiliang/study/tell.info‘
f=file(tell_file)
account_list=f.readlines()
f.close()
forninaccount_list:
h=n.strip().split()
name=h[0]
phone=h[1]
try:
conn=MySQLdb.connect(host=‘x.x.x.x‘,..
分类:
编程语言 时间:
2014-10-15 15:47:11
阅读次数:
204
一、 如何避免在产品开发后期不断有重大修改,导致其他模块的连锁反应?我认为首先前期的需求分析要尽可能完善并确定,需求变更是程序员所不能承受生命之重。另外题目中谈到的设计模式变更方法,是个很好的控制策略。项目早期采用Tell-mode,可以先行设计并编码,有较高的自由度;到了项目稳定阶段,采用Ask-...
分类:
其他好文 时间:
2014-10-13 14:37:29
阅读次数:
193
Inprojectedmode, you have to specify a map profile (i.e. a mapprojection). You also need to tell osgEarth the spatial reference of your feature data i...
分类:
其他好文 时间:
2014-10-11 11:50:25
阅读次数:
404
This arctile will tell you how to expose Interface field In Inspector,and serialize it....
分类:
编程语言 时间:
2014-10-10 21:11:14
阅读次数:
495
2012年3月11日dlut周赛1002LOVELY-POINTTimeLimit:1 SecondMemoryLimit:32 MegabyteTotalsubmit:154Accepted:42DescriptionLolihunter loves Lolita,To tell while lo...
分类:
其他好文 时间:
2014-10-10 13:03:54
阅读次数:
158
Teen Girl Squad
Input: Standard Input
Output: Standard Output
You are part of a group of n teenage girls armed with cellphones. You have some news you want to tell everyone in the group. The p...
分类:
其他好文 时间:
2014-10-01 22:11:12
阅读次数:
295
Tell me the areaTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1876Accepted Submission(s): 567Pro...
分类:
其他好文 时间:
2014-09-30 03:29:01
阅读次数:
202
Binary String Matching
时间限制:3000 ms | 内存限制:65535 KB
难度:3
描述
Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as ...
分类:
其他好文 时间:
2014-09-18 11:34:53
阅读次数:
178
题目链接The problem is quite simple. You're given a number N and a positive integer K. Tell if N can be represented as a sum of K prime numbers (not neces...
分类:
其他好文 时间:
2014-08-25 13:19:04
阅读次数:
270
Little Hasan loves to play number games with his friends.One day they were playing a game where one of them will speak out a positive numberand the others have to tell the sum of its factors. The firs...
分类:
其他好文 时间:
2014-08-25 11:57:04
阅读次数:
235