path.basename("path/to/file/sample.txt")path = os.getcwd()print(os.path.join(path, name)) Output: A string representing the concatenated path components. Python ...
確定! 回上一頁