Python入門學習練習實例:
print('-----歡迎來到子曰教育-公益圖書館------')
A=['故鄉','明天','彷徨','吶喊','童年的故事']
B=['明朝','秦朝','三國','唐朝']
C=['攝影','繪畫']
D=['大灰狼','小白兔']
book_info={'A':'文學','B':'歷史','C':'藝術','D':'兒童'}
admin=input('請輸入用戶名:')
pwd=int(input('請輸入密碼:'))
while admin=='admin' and pwd==123:
print('''--歡迎進入圖書管理系統---
|---1.查詢書籍---|
|---2.增加書籍---|
|---3.刪除書籍---|
|---4.退出系統---|''')
num=str(input('請輸入 操作序號:'))
if num!='1' and num!='2' and num!='3' and num!='4':
print('輸入錯誤!請重新輸入.....\n')
continue
內容更新中.........................