原创 VS中release和debug區別
debug:調試版本,包含調試信息,不做任何優化,便於程序員調試程序。 release:發佈版本,在代碼量和運行速度上都做了優化,來使程序運行速度更快,便於用戶使用。
原创 python 10-22遇到的問題
def test(): config = "******************************************" ret = msc.mspQISRInit(config) if ret!=0
原创 python HTTPlib &&find,seek
#HTTPlib異常捕獲 def test():import httplibconn = httplib.HTTPConnection('server_url','port',False,10) #引號!!!server_u
原创 python調用dll文件時傳入參數是int*,返回值是char*,對傳入的char*所指的內容的修改
首先載入dll:test = ctypes.windll.LoadLibrary('dlltest.dll') 若調用的dll中的函數的參數是int*: a = ctypes.c_int(5) #add是dll中的函數。int add(i
原创 生成dll文件以及python對DLL中函數的調用(參數類型以及返回值)
工具:VS2010 python2.7 (若使用的python是64位的,生成的dll也要使用x64) 系統:win7pro 64bit 首先,dll工程的創建以及dll文件的生成: new project-->win32 pro
原创 cdll & windll & oledll
原文章地址:http://blog.csdn.net/caimouse/article/details/38395461 三者是python調用C寫的動態鏈接庫時,引用的ctypes庫中的三個容易加載動態鏈接庫的對象。通
原创 python print以及%格式化
只是使用輸出: s = "hello world" d = 345 print "the string is %s, the int is %d" % (s,d) #兩個加(),一個用不着 #%x-->hex 十六進制 #%d--
原创 第三方python庫
各種python庫。包括32和64位的。 http://www.lfd.uci.edu/~gohlke/pythonlibs/ pyaudio64位的在此找到。 點贊 收藏 分享 文章舉報
原创 Nagios安裝配置(ubuntu)&調研
來源於:http://os.51cto.com/art/201401/427664.htm 首先安裝PHP,apache,GCC以及GD庫。 有些ubuntu已經安裝有下述中的某些。使用apt-cache show apache2
原创 salt的python接口調用
salt的python api:http://docs.saltstack.com/en/latest/ref/clients/ python腳本調用salt命令 腳本要在master機器上執行,執行用戶需要是master用戶 (1
原创 Nagios客戶端安裝
來源於:http://blog.csdn.net/jiedushi/article/details/6524375 在被監控主機上新建用戶和組 useradd nagios groupadd nagcmd 檢查gcc是否安裝了:apt-
原创 Ubuntu下安裝pip,並安裝docker第三方包
安裝pip的方法: Install pip and virtualenv for Ubuntu 10.10 Maverick and newer $ sudo apt-get install python-pip python-dev
原创 docker刪除None鏡像
參考:百度知道(http://zhidao.baidu.com/link?url=javNZS-LbUTn4ba4zWuul2QvKLz9cm08hpYCmwCQZulGNXh51oGjOex5Y8dpdGGahbJbv0K6hRw_WT
原创 python字典和列表各種嵌套排序
轉載自http://m.zgxue.com/167/1676555.html 一: 字典排序 解析: 使用sorted 方法, 排序後的結果爲一個元組. 可以字符串排序(那數字肯定更沒問題了!) 1: 按照鍵值(
原创 docker搭建私人倉庫
docker pull samalba/docker-registry docker run -d -p 5000:5000 samalba/docker-registry