2009-10-06 str.endswithには配列も指定できる python Pythonのstr.endswithには配列も指定できることを知った。 path.endswith(('/','\\'))