numpy使用过程中小函数记录

Ref:http://www.numpy.org/

1.数组反向输出:

https://www.hackerrank.com/challenges/np-arrays

Sample Input

1 2 3 4 -8 -10

Sample Output

[-10. -8. 4. 3. 2. 1.]
import numpy as np

print np.array(raw_input().split(" "),float)[::-1];

你可能感兴趣的:(python,numpy)