Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
pathlib change extension
user828
Programming language:
Python
2021-07-07 12:13:05
0
Q:
pathlib change extension
Billy C.
Code:
Python
2021-06-28 06:29:41
from pathlib import Path filename = "mysequence.fasta" new_filename = Path(filename).stem + ".aln"
0
Tags
change
Related
how to change os path in python
add system path python jupytre
how to use path to change working directory in python
python pathlib current file path
selenium set chrome executable path
python pathfinding module
python get file extension from path
New to Communities?
Join the community