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 [2021/08/03 15:42] – alex | public:computer:python [2023/01/02 15:20] (current) – [References] alex | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ===== prepare ===== | ===== prepare ===== | ||
| + | ==== on WSL2 ==== | ||
| + | {{page>: | ||
| ==== get python ==== | ==== get python ==== | ||
| Line 864: | 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)) | ||
| + | </ | ||