To use the Path class from the pathlib module, you import it as follows: ... To get the file name of a path, you use the name property: from pathlib import ...
確定! 回上一頁