Please Help

xuanwu348 xuanwu348 at 163.com
Sat Jan 27 03:10:06 EST 2018


np.uint8 is unsigned int,
range 0~255
>>> np.uint8(256)
0









At 2018-01-27 12:33:22, "" <mohammedfarazali at gmail.com> wrote:
>import numpy as np
>x=np.unit8([250)
>print(x)
>y=np.unit8([10])
>print(y)
>z=x+y
>print(z)
>
>
>output
>
>[250]
>[10]
>[4]
>
>My question how is z [4]
>-- 
>https://mail.python.org/mailman/listinfo/python-list


More information about the Python-list mailing list