node.js - nodejs php python generates the format string

WBOY
Release: 2016-08-18 09:15:45
Original
915 people have browsed it

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!