📜  pathlib 更改扩展 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:12.698000             🧑  作者: Mango

代码示例1
from pathlib import Path

filename = "mysequence.fasta"
new_filename = Path(filename).stem + ".aln"