摘要:
将png,jpg,gif等图片格式转换成bmp格式代码如下:import Image##im = Image.open('BtnWrite.Image.gif')##im.save('BtnWrite.Image.bmp')##import osextension = ['.bmp']listfil... 阅读全文
摘要:
def strCmp(s1,s2): aLi = list(s1) bLi = list(s2) alen = len(s1) blen = len(s2) if alen > blen: lenth = blen else: lent... 阅读全文
摘要:
>>> s = ['ta','ad','at','At','eg']>>> sorted(s)['At', 'ad', 'at', 'eg', 'ta']>>> #python中的字符串排序,按字典序 阅读全文
摘要:
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 ... 阅读全文
摘要:
chdir函数改变目录后仅仅对当前进程有效,shell退出之后还是会回到原来的目录。 阅读全文
摘要:
首先,保证vmware的相关进程已经启动,如:vmware-dhcp,vmware-nat等;其次,vmware的虚拟网卡的地址为自动分配,vmware中的联网方式为nat;最后,请本地网络共享给虚拟网卡8。 阅读全文
摘要:
23-1. Web Services. Take the Yahoo! stock quote example (stock.py) and change the application to save the quote data to a file instead of displaying it to the screen.Optional: You may change the script so that users can choose to display the quote data or save it to a file. 1 #!/usr/bin/env python 2 阅读全文
摘要:
从大一到大三,学习中好多的东西都没记录下来,当回顾以前的工作时,发现做的东西都好陌生,现在开始一点一点的做好文档工作,加油! 阅读全文