Here is how I would do it:
https://play.golang.org/p/-aSfOYst6w
-s
sent from my droid
On Dec 6, 2017 8:03 PM, "Jonathan Yu" wrote:
>
>
> 2017-12-06 10:38 GMT-08:00 Christian LeMoussel :
>
>> I have to write a Python program that uses numpy in GO.
>> I have this Python code :
>> prefix = "de
2017-12-06 10:38 GMT-08:00 Christian LeMoussel :
> I have to write a Python program that uses numpy in GO.
> I have this Python code :
> prefix = "de98671db1ce0e5c9ba89ab7ccdca6c427460295b8dd3642e9b2bb961723
> 307c57629b1ad37909a863a56965"
> prefix_np = np.fromstring(prefix[0:64], dtype=np.uin
I have to write a Python program that uses numpy in GO.
I have this Python code :
prefix =
"de98671db1ce0e5c9ba89ab7ccdca6c427460295b8dd3642e9b2bb961723307c57629b1ad37909a863a56965"
prefix_np = np.fromstring(prefix[0:64], dtype=np.uint32, count=16)
print("prefix_np: {}".format(prefix_np))