Answers for "pathlib change extension"

0

pathlib change extension

from pathlib import Path

filename = "mysequence.fasta"
new_filename = Path(filename).stem + ".aln"
Posted by: Guest on July-17-2020

Python Answers by Framework

Browse Popular Code Answers by Language