Get Filename Without Extension in Python

前端 未结 5 1323
北海茫月
北海茫月 2021-02-01 00:26

If I have a filename like one of these:

1.1.1.1.1.jpg

1.1.jpg

1.jpg

How could I get only the filename, without the extension? Would a regex b

5条回答
提交回复
热议问题