Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| public:computer:python [2022/12/29 16:17] – alex | public:computer:python [2023/01/02 15:20] (current) – [References] alex | ||
|---|---|---|---|
| Line 868: | Line 868: | ||
| ===== References ===== | ===== References ===== | ||
| + | * [[https:// | ||
| + | * <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)) | ||
| + | </ | ||