import numpy as npimport osa=bytearray(os.urandom(27))# for i in range(21):# print(a[i])a=np.array(a)print(a)b=a.reshape((-1,3))print(b)c=bytearray(b)print(c)for i in range(27): print(a[i]) import numpy as npimport osa=bytearray(os.urandom(27))# for
How can I convert a QString to char* and vice versa ?(trolltech) Answer:In order to convert a QString to a char*, then you first need to get a latin1 representation of the string by calling toLatin1() on it which will return a QByteArray. Then call d