用法:
Path.joinpath(*other)
返回一個包含每個
other
參數的新 Path 對象。以下是等價的:>>> Path(...).joinpath('child').joinpath('grandchild') >>> Path(...).joinpath('child', 'grandchild') >>> Path(...) / 'child' / 'grandchild'
在 3.10 版中更改:在 3.10 之前,
joinpath
沒有記錄並且隻接受一個參數。
相關用法
- Python zipfile.PyZipFile.writepy用法及代碼示例
- Python zipfile.ZipFile.open用法及代碼示例
- Python zip()用法及代碼示例
- Python zip用法及代碼示例
- Python string zfill()用法及代碼示例
- Python zlib.compress(s)用法及代碼示例
- Python zlib.decompress(s)用法及代碼示例
- Python zlib.adler32()用法及代碼示例
- Python numpy matrix zeros()用法及代碼示例
- Python zlib.crc32()用法及代碼示例
- Python zoneinfo.ZoneInfo用法及代碼示例
- Python torch.distributed.rpc.rpc_async用法及代碼示例
- Python torch.nn.InstanceNorm3d用法及代碼示例
- Python sklearn.cluster.MiniBatchKMeans用法及代碼示例
- Python pandas.arrays.IntervalArray.is_empty用法及代碼示例
- Python tf.compat.v1.distributions.Multinomial.stddev用法及代碼示例
- Python numpy.less()用法及代碼示例
- Python tf.compat.v1.distribute.MirroredStrategy.experimental_distribute_dataset用法及代碼示例
- Python Sympy Permutation.list()用法及代碼示例
- Python dask.dataframe.Series.apply用法及代碼示例
注:本文由純淨天空篩選整理自python.org大神的英文原創作品 zipfile.Path.joinpath。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。