๐จ๐ผ๐ป๊ฐ๋ฐ/ํ์ด์ฌ
ํ์ด์ฌ - ์ค๋ณต ์๋ ๊ณ ์ ์ฑ์ด ๋ณด์ฅ๋๋ id ๋ง๋ค๊ธฐ(uuid)
Janger
2022. 6. 18. 02:18
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