Python随机数 HandsomeHan 2017-09-20 Python Algorithm Python随机数1234# N 代表随机数的位数import random, stringcode = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(N))