Inflearn brand logo image

Inflearn Community Q&A

sincc07151223's profile image
sincc07151223

asked

Instagram Clone - full stack web development

accounts: model

model.py에 user_path 에 arr와 pid부분헷갈립니다.

Written on

·

117

1

arr = [choice(string.ascii_letters) for _ in range()]

pid = '',join(arr)

이렇게 쓰셨는데 arr랑 pid랑 예를들어서 어떻게 들어가는지 궁금해요 사실 join함수나 python에 list 안에 for구문 넣는걸 약간 헷갈린 상태에서 choice(starig.ascii_letters)가 들어오니까 많이 헷갈립니다. 

그래서 arr , pid 예를 들면 뭐 123455.exe 이런 파일명이 들어가면 어떻게 변수로 들어가는지 궁금하고 죄송하지만 한번 더 설명 부탁드려요..!

HTML/CSSdjangopython클론코딩

Answer

This question is waiting for answers
Be the first to answer!
sincc07151223's profile image
sincc07151223

asked

Ask a question