如何生成一个独特的长尾词随机文件名.txt?
- 内容介绍
- 文章标签
- 相关推荐
本文共计35个文字,预计阅读时间需要1分钟。
pythonimport hashlibimport uuid
def getRandName(name): return hashlib.md5(uuid.uuid4().hex + name).hexdigest() + .txt
随机文件名.txtfunction getRandName($name) { return md5(uniqid(rand()) . $name); }
本文共计35个文字,预计阅读时间需要1分钟。
pythonimport hashlibimport uuid
def getRandName(name): return hashlib.md5(uuid.uuid4().hex + name).hexdigest() + .txt
随机文件名.txtfunction getRandName($name) { return md5(uniqid(rand()) . $name); }

