728x90
๋ฐ์ํ
import uuid
uuid.uuid4() #uuid4 => full random uuid
# Outputs something like: UUID('0172fc9a-1dac-4414-b88d-6b9a6feb91ea')
uuid๋ ๊ณ ์ ์ฑ์ด ๋ณด์ฅ๋๋ id๋ฅผ ๋ง๋ค๊ธฐ ์ํ ํ์ค ๊ท์ฝ์ ๋งํ๋ค.
์ถ์ฒ:
Random string generation with upper case letters and digits
How do I generate a string of size N, made of numbers and uppercase English letters such as: 6U1S75 4Z4UKK U911K4
stackoverflow.com
728x90
๋ฐ์ํ
'๐จ๐ผโ๐ป๊ฐ๋ฐ > ํ์ด์ฌ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
ํ์ด์ฌ - ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์์ ์ฐธ๊ณ ์ํค ๋ฌธ์(์ ํ ํฌ ํ์ด์ฌ) (0) | 2022.06.28 |
---|---|
ํ์ด์ฌ - ํ ๋ ๊ทธ๋จ ๋ด ํ์ผ ์ ๋ก๋(๋ด์ด ํ์ผ์ ๋ค์ด๋ก๋) (0) | 2022.06.18 |
ํ์ด์ฌ - ํ์ฌ ๋ผ์ธ๋ฒํธ ์ถ๋ ฅ (0) | 2022.05.25 |
ํ์ด์ฌ - ini ์ค์ ํ์ผ ๋ถ๋ฌ์ค๊ธฐ (0) | 2022.05.08 |
ํ์ด์ฌ - ์ค๋ ๋ ์๊ด ์์ด ํ๋ก๊ทธ๋จ ์์ ์ข ๋ฃ (0) | 2022.05.07 |