转自Stackoverflow.备忘用. Question In Python 2 I could do the following: import numpy as np f = lambda x: x**2 seq = map(f, xrange(5)) seq = np.array(seq) print seq # prints: [ 0 1 4 9 16] In Python 3 it does not work anymore: import numpy as np f = lambd
c++ hex string array 转换 效果如下 tset string is follow 0x50 55 0x35 00 10 203040506073031323334ff format string is follow 5055350010203040506073031323334F0F now is to convert to a array and then convert to string to show 5055350010203040506073031323334F0