03 2015 档案

摘要:将png,jpg,gif等图片格式转换成bmp格式代码如下:import Image##im = Image.open('BtnWrite.Image.gif')##im.save('BtnWrite.Image.bmp')##import osextension = ['.bmp']listfil... 阅读全文
posted @ 2015-03-30 10:29 &苍云 阅读(879) 评论(0) 推荐(0)
摘要:def strCmp(s1,s2): aLi = list(s1) bLi = list(s2) alen = len(s1) blen = len(s2) if alen > blen: lenth = blen else: lent... 阅读全文
posted @ 2015-03-25 09:51 &苍云 阅读(529) 评论(0) 推荐(0)
摘要:>>> s = ['ta','ad','at','At','eg']>>> sorted(s)['At', 'ad', 'at', 'eg', 'ta']>>> #python中的字符串排序,按字典序 阅读全文
posted @ 2015-03-20 16:26 &苍云 阅读(2988) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 int main() 4 { 5 char s1[10] = "abcd"; 6 char s2[10] = "ABCDEF"; 7 printf("s1 = %s\ns2 = %s\n",s1,s2); 8 ... 阅读全文
posted @ 2015-03-20 13:41 &苍云 阅读(389) 评论(0) 推荐(0)