티스토리 뷰
ex11 print input - https://github.com/wzpan/Learn-Python-The-Hard-Way/blob/master/Python3/ex11.py
ex12 input - https://github.com/wzpan/Learn-Python-The-Hard-Way/blob/master/Python3/ex12.py
ex13 argv - https://github.com/wzpan/Learn-Python-The-Hard-Way/blob/master/Python3/ex13.py
제어문 - https://wikidocs.net/19
print("주소록 프로그램")
address_book = []
while True:
print("============================")
print("1. 새로운 학생 데이터 입력")
print("2. 학생 데이터 조회")
print("2-1. 수학 낙제점자 차출")
print("3. 학생 데이터 수정")
print("4. 학생 데이터 삭제")
print("5. 종료")
print("6. 저장")
print("7. 불러오기")
print("============================")
number = input()
if number == '1':
print("이름")
name = input()
print("전화번호")
phone_number = input()
a_book = {
'name': name,
'phone_number': phone_number,
}
address_book.append(a_book)
elif number == '2':
print(address_book)
elif number == '3':
pass
elif number == '4':
pass
elif number == '5':
break
'simpLedu' 카테고리의 다른 글
교육 후 설문 (0) | 2018.07.02 |
---|---|
6번째 수업. 파이썬 기초 - 변수와 자료형 (3) | 2018.07.02 |
5번째 수업. 프로그래밍 언어 소개 (0) | 2018.06.28 |
4번째 수업. 아두이노 Arduino (0) | 2018.06.21 |
3번째 수업. 스크래치 Scratch - Imagine, Program, Share (3) | 2018.06.20 |