It is possible to access the underlying C array of a Python array from within Cython. ... cimport memset memset(a.data.as_voidptr, 0, len(a) * sizeof(int)).
確定! 回上一頁