Is this the best way to get unique version of filename w/ Python?

前端 未结 6 816
情话喂你
情话喂你 2021-02-05 12:36

Still \'diving in\' to Python, and want to make sure I\'m not overlooking something. I wrote a script that extracts files from several zip files, and saves the extracted files t

6条回答
  •  情歌与酒
    2021-02-05 13:11

    If you want readable names this looks like a good solution.
    There are routines to return unique file names for eg. temp files but they produce long random looking names.

提交回复
热议问题