| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # # 따라하며 배우는 파이썬과 데이터과학(생능출판사 2020) # LAB 9-4 1회용 패스워드를 만들어 보자, 231쪽 # import random import string src_str = string.ascii_letters + '0123456789' n_digits = int(input('몇 자리의 비밀번호를 원하십니까? ')) otp = '' for i in range(n_digits) : idx = random.randrange(len(src_str)) otp += src_str[idx] print(otp) | cs |


Python for AI 실습게시판