Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
원본 파일 삭제 기능 추가
총 글수 계산 방식 변경
  • Loading branch information
hanel2527 authored Sep 29, 2018
1 parent 2c40658 commit 5a9bf63
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gallchangranking.ver.1.3.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,13 @@ def edit_nick():
file_writer(gall, nick_list)
f.close()
original = re.findall("^edit_(.*\.txt)", file_name)[0]
os.remove(original) #원본파일 삭제
os.remove(file_name)
if input("원본파일 삭제?(y/n): ") == "y":
os.remove(original) #원본파일 삭제
os.remove(file_name)


if __name__ == "__main__":
print("갤창랭킹 made by hanel2527, mlp갤")
if input("갤창랭킹/편집(g/e): ") == "g":
main()
edit_nick() #닉변처리
edit_nick() #닉변처리

0 comments on commit 5a9bf63

Please sign in to comment.