-2
Q
Ctypes定義
A
回答
1
根據您需要如何使用x
,您可能需要ctypes.create_string_buffer
。
x = ctypes.create_string_buffer(' ' * 10);
相關問題
- 1. ctypes純python vs ctypes django
- 2. 在Python ctypes中自定義類型的回調
- 3. Python的ctypes加載錯誤:未定義的符號
- 4. 在ctype結構中定義的ctypes字符串不起作用
- 5. Ctypes:來自C定義的數據類型
- 6. 提供的ctypes的函數外部定義的C/C++庫
- 7. 使用ctypes包裝C++:未定義的符號
- 8. ctypes的
- 9. 標準輸出重定向與ctypes
- 10. ctypes vs純python
- 11. python gdb和ctypes
- 12. 在與ctypes的
- 13. Ctypes和PyQt
- 14. 鑄造ctypes的
- 15. ctypes <type'exceptions.TypeError'>
- 16. ctypes的mouse_events
- 17. Resize ctypes array
- 18. ctypes python std :: string
- 19. python ctypes數組
- 20. define * struct ctypes
- 21. ctypes和PySide
- 22. Ctypes pro和con
- 23. Python Ctypes&Threading
- 24. Python,ctypes和mmap
- 25. python3如何定義ctypes結構從返回類型從導入的庫
- 26. ctypes:如何將結構數組定義爲另一個結構的字段?
- 27. Python mmap ctypes - 只讀
- 28. python中的ctypes lib
- 29. 使用ctypes模塊
- 30. 靜態庫的ctypes?
ctypes用於互操作。您需要描述參數如何傳遞。但char *通常映射到'c_char_p'。 –
這個問題是上一個問題[這裏]的一部分(http://stackoverflow.com/questions/7513269/calling-dll-functions-using-python-ctypes)。謝謝。 – Martin
你的問題(這一個和前一個)沒有任何意義。將C代碼轉換爲Python時,不需要使用ctypes。當你想從Python調用本地代碼時,你需要ctypes。本地代碼在哪裏? –