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