Home  >  Article  >  Backend Development  >  node.js - nodejs php python generates the format string

node.js - nodejs php python generates the format string

WBOY
WBOYOriginal
2016-08-18 09:15:45915browse

Currently needed

nodejs php python

These three types of languages ​​generate strings in the following format
based on the current timestamp and cannot be repeated

<code>45E974F3-B242-486b-8487-56C23D37FF90</code>

Reply content:

Currently needed

nodejs php python

These three types of languages ​​generate strings in the following format
based on the current timestamp and cannot be repeated

<code>45E974F3-B242-486b-8487-56C23D37FF90</code>

This thing is called uuid.

The questioner just doesn’t know, please don’t be so cruel.

lazy

<code class="python">import uuid

uuid.uuid4()</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn