![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 79
小楠
我很腼腆
展开
-
python
#!/usr/bin/python #author songnanimport tool import string import os CTI_LINK_FILE = 'CTI_LINK.ini' CCS_LINK_FILE = 'icdpub.ini' def config_CCS_CTILINK(): oldCtiLinkIp = tool.read_val(CTI原创 2013-04-09 17:07:43 · 195 阅读 · 0 评论 -
python 进制转换
#!/usr/bin/env python # -*- coding: utf-8 -*- import os,sys # global definition # base = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F] base = [str(x) for x in range(10)] + [ chr(x) for x i转载 2013-04-22 14:22:16 · 191 阅读 · 0 评论 -
python 冒泡排序
def sort(arr): for i in range( len(arr) - 1,0,-1 ): for j in range(0,i): if arr[j] > arr[j+1]: arr[j],arr[j+1] = arr[j+1],arr[j] if __name__ == "__main__":原创 2013-05-08 14:18:55 · 185 阅读 · 0 评论 -
python 冒泡排序
def sort(arr): for i in range( len(arr) - 1,0,-1 ): for j in range(0,i): if arr[j] > arr[j+1]: arr[j],arr[j+1] = arr[j+1],arr[j] if __name__ == "__main__":原创 2013-05-08 14:19:54 · 351 阅读 · 0 评论 -
如何把一个python编译成windows的可执行文件(.exe)
1.下载py2exe程序 2.安装 3.写一段python test.py import sys def test(): print "HelloWorld" if __name == "__main__": test() 4.再写一段python调用py2exe的程序,exce.py from distutils.core import setup原创 2013-04-22 16:36:08 · 454 阅读 · 0 评论