結果 : nonetype object is not subscriptable in python