Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ドキュメントに画像のパス全体を返す impaths 関数があります。例: /../Documents/Furniture/1.jpg /../Documents/Furniture/2.jpg … 最大 40 個の画像。
impath を印刷すると、常にパス全体が返されます。画像名 (1.jpg、2.jpg など) のみを取得する方法はありますか。
for i in range (len(impaths)): impath = impath[i] print impaths