多说一句题外话,路径有绝对路径和相对路径的区别。本篇文章我们只谈os.path, ... import os >>> os.path.basename("E:\\abc\\efg.txt") 'efg.txt'.
確定! 回上一頁