1. 程式人生 > >numpy,看不懂,但很利害

numpy,看不懂,但很利害

num ber number clas com es2017 highlight ima sort

慢慢有感覺。。

截幾個圖看看。

import numpy as np
np.random.seed(42)
complex_numbers = np.random.random(5) + 1j * np.random.random(5)
print "Complex numbers\n", complex_numbers
print "Sorted\n", np.sort_complex(complex_numbers)

  技術分享

技術分享

技術分享

numpy,看不懂,但很利害