This repository was archived by the owner on Aug 21, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemberNote.py
More file actions
71 lines (58 loc) · 1.92 KB
/
Copy pathMemberNote.py
File metadata and controls
71 lines (58 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
run = True #while 문을 최종 관리하는 변수
login_user = None # 현재 로그인한 사용자 인덱스
meun = """
1. 회원가입
2. 로그인
3. 회원보기
4. 정보 수정
5. 프로그램 종료
"""
sns = []
ids = []
passwords = []
names = []
emails = []
admins = [True, False]
while run:
print(meun)
select = input("숫자를 입력하세요. 1~5 : ")
if select == "1" :
print("회원가입 메뉴에 진입하였습니다.")
sn = input("사번을 입력하세요 : ")
id = input("아이디를 입력하세요 : ")
pw = input("비밀번호를 입력하세요 : ")
na = input("이름을 입력하세요 : ")
em = input("이메일을 입력하세요 : ")
admin = False
print("입력된 값을 확인 후 맞으시면 Y를 눌러주세요.")
print("사번" + sn)
print("아이디" + id)
print("비밀번호" + pw)
print("이름" + na)
print("이메일" + em)
if input("Y : N") == "Y" :
sns.append(sn)
ids.append(id)
passwords.append(pw)
names.append(na)
emails.append(em)
print("입력이 완료되었습니다. 회원가입이 되었습니다.")
else :
print("처음부터 다시 입력하세요")
elif select == "2" :
print("로그인 메뉴입니다.")
id = input("아이디 : ")
pw = input("비밀번호 : ")
if id in ids :
idx = ids.index(id)
if passwords[idx] == pw :
login_user = id
elif select == "3" :
print("회원보기 메뉴입니다.")
elif select == "4" :
print("정보수정 메뉴입니다.")
elif select == "5" :
print("회원가입 프로그램이 종료됩니다.")
run = False
else:
print("\n\n잘 못 입 력 되 었 습 니 다 . \n1~5사이의 값을 입력하세요")