發表文章

目前顯示的是 6月, 2021的文章

[python3] ModuleNotFoundError: No module named 'graphviz'

如果你在Anaconda-Navigator安裝graphviz 圖還是畫不出來 你可以試著再加裝 python-graphviz 看看

[Py] Array

print(m[:,0])   # 1st column print(m[0,:])   # 1st row print(m[:])     # all https://markjong001.pixnet.net/blog/post/198889679

[py] Partition

Partition的功能就是把數列「區分」成「小於pivot」與「大於pivot」兩半 https://alrightchiu.github.io/SecondRound/comparison-sort-quick-sortkuai-su-pai-xu-fa.html

[python3] numpy.reshape

https://numpy.org/doc/stable/reference/generated/numpy.matrix.reshape.html https://numpy.org/doc/stable/reference/generated/numpy.reshape.html#numpy.reshape np.reshape(a, (3,-1))        # the unspecified value is inferred to be 2 # 固定row是3 # -1→系統自動幫判斷column array([[1, 2],        [3, 4],        [5, 6]])