python ctypes總結

核心概念 ctypes官方 類型一覽 ctypes是python定義的爲實現類型轉換的中間層,是純python數據類型與c類型通信的橋樑. 除了None,integer,string,bytes,(隱式轉換), 其他都需要轉換成ctypes類型作爲參數. None -->NULL string bytes -- > char* wchar_t* integer -- > int #c_double
相關文章
相關標籤/搜索