Skip to content

lister.py#5

Open
seoyoung-0 wants to merge 7 commits intowit-korea:masterfrom
seoyoung-0:seo0
Open

lister.py#5
seoyoung-0 wants to merge 7 commits intowit-korea:masterfrom
seoyoung-0:seo0

Conversation

@seoyoung-0
Copy link

@seoyoung-0 seoyoung-0 commented Jun 8, 2020

https://github.com/seoyoung-0/seoyoung-0.github.io

https://seoyoung-0.github.io/

자동배포 액션은 자꾸 에러가 나서 해결하지 못한 상태입니다. ㅠ ㅠ

@Parkayun
Copy link
Contributor

Parkayun commented Jun 8, 2020

파이썬 파일을 아이디나 닉네임으로 폴더를 만들고 그안에 넣어주세요~
ex seoyoung-0/lister.py

Copy link

@sinwoobang sinwoobang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

안녕하세요, 실행 확인했습니다.
코딩 스타일은 과제 범위가 아닌 걸로 알고 있는데 첨언 차원에서 리뷰해드렸습니다.




def searchTwo(dir,third):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 콤마(,) 뒤에는 한 칸 띄워주는 것이 PEP8 가이드입니다. dir, third
  • 함수명은 언더스코어(_) 기반 소문자로 짓는 것이 PEP8 가이드입니다. search_two

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 감사드립니다.
참고하겠습니다.

Comment on lines +22 to +37
fullFilename = os.path.join(dir, file)
if os.path.isdir(fullFilename):
for ig in third:
if ig in fullFilename:
break
else:
if fullFilename.endswith(ig):
searchTwo(fullFilename,third)

else:
for ig in third:
if ig in fullFilename:
break
else:
file_list.append(fullFilename)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

들여쓰기는 줄마다 4칸씩 주는 것이 PEP8 가이드입니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants