获取路径名:os.path.abspath() 扩展(__file__打印绝对路径,但是在pycharm中是相对路径。print(os.path.abspath(__file__)). 获取文件名:os.path.basename().
確定! 回上一頁