Created
December 12, 2021 03:22
-
-
Save Neko288/85cbb6112c469c42cf1dca4023f75cf2 to your computer and use it in GitHub Desktop.
数字と文字で名前を自動生成します。(パッケージとして使えます)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random, string | |
def naming(n): | |
randlst = [random.choice(string.ascii_letters + string.digits) for i in range(n)] | |
return ''.join(randlst) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment