Pathlib: how to remove first n characters of path.stem

后端 未结 0 578
长情又很酷
长情又很酷 2020-12-03 16:54

To the point: In a python script with YAML syntax I want to rename a file using:

{created.year}-{created.month:02}-{created.day:02}_{path.stem}.jpg

相关标签:
回答
  • 消灭零回复
提交回复
热议问题