全局唯一标识符(GUID,Globally Unique Identifier) java import java.util.UUID; UUID uuid = UUID.randomUUID(); file=new File(filePath+"\\"+uuid+picname); //生成唯一图片名称 python import uuid fileName = str(uuid.uuid4()) + file.name # 避免文件名称冲突