明日会社がなくなっても

明日会社がなくなっていても動揺しないように、情報を残していきたい

夏休み5日目の学習記録

08/16(水),フードコードでお勉強。

  • 2時間(18:30-20:30)
  • 13ページ(110-122P)
  • 4.4.2-4.6章(4章完了)

Python

for i in range(5):
   print(i, end=" ") 
# ⇒ 0 1 2 3 4 
a = np.arange(4).reshape(2,2) # 2×2の行列
for x in np.nditer(a):
    print(x, end=" ")
# ⇒ 0 1 2 3 4
it = np.nditer(a, flags=['multi_index'])
while not it.finished:
   print(it.multi_index, end=" ")
   it.iternext()
# ⇒ (0, 0) (0, 1) (1, 0) (1, 1) 
from IPython.core.debugger import Pdb; Pdb().set_trace()

JupyterまたはiPython Notebookでデバッグをする方法 - Qiita

from greeting import *
  • JupyterでIn [*]は、実行中を表す.

『ゼロから作るDeep Learning