public:computer:python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
public:computer:python [2022/12/29 16:17] alexpublic:computer:python [2023/01/02 15:20] (current) – [References] alex
Line 868: Line 868:
  
 ===== References ===== ===== References =====
 +  * [[https://wikidocs.net/131351|098 고유한 식별자를 만들려면? ― uuid]]
 +    * <sxh python>
 +import uuid
 +strLongUUID = uuid.uuid1()
 +print(strLongUUID)
 +print(strLongUUID.bytes)
 +print(strLongUUID.hex)
 +print(strLongUUID.int)
 +print(strLongUUID.fields)
 +print(strLongUUID.urn)
 +print('')
  
 +#pip install shortuuid
 +import shortuuid
 +strShortUUID = shortuuid.uuid()
 +print(strShortUUID)
 +print(len(strShortUUID))
 +</sxh>
  • public/computer/python.1672298257.txt.gz
  • Last modified: 2022/12/29 16:17
  • by alex