結果 : how to fix typeerror nonetype object is not subscriptable in python