6 1 4 學員管理系統

2021-08-20 13:16:00 字數 1634 閱讀 4718

# ******************************====

# 歡迎進入學員管理系統v1.0

# 1. 登入

# 2. 退出

# 3. 認證

# 4. 修改密碼

# ******************************====

## 編寫程式,從鍵盤獲取使用者名稱和密碼,然後判斷,如果正確就輸出以下資訊

# 親愛的***,歡迎登入學員管理系統

print('='*30)

print('歡迎進入學員管理系統v1.0')

print('''1.登陸

2.退出

3.認證

4.修改密碼''')

print('='*30)

while true:

choose = input('please select the number:')

if choose == '1':

name = input('please enter your name:')

pwd = input('please enter your password:') #int(input('') dic = *****====>input('') dic = 注意型別轉換

dic =

if dic['lucy'] == pwd :

print('dear%s,歡迎登陸學員管理系統'%name)

if choose == '2':

i***it = input('您確定要退出系統嗎?(y/n):')

i***it.lower()

if i***it == 'y':

print('thank you!')

break

print('='*30)

print('歡迎登陸學員管理系統v1.0')

print('1.登陸')

print('2.退出')

print('3.認證')

print('4.修改密碼')

print('='*30)

while true:

choose = input('please select the number above:')

if choose == '1':

username = input('please enter your username:').title()

pwd = int(input('please enter your password:'))

dic =

if pwd == dic['lucy']:

print('dear {},歡迎登陸學員管理系統!'.format(username))

break

else:

print('您輸入的使用者名稱與密碼不匹配,請重新輸入')

if choose == '2':

i***it = input('are you sure you want to quit the system?(y/n)').lower()

if i***it == 'y':

print('thank you for landing!')

break

shell案例 學員管理系統

前言 學員管理系統涉及到學員的增刪改查,這是乙個綜合性比較強的專案,在所有的程式語言裡都會有不同版本的學員資訊管理系統,難度適中 效果截圖 學員管理系統原始碼 bin bash 隨機點名冊 while true doecho 學生隨機點名系統 echo 1.新增學員名單 echo 2.遍歷學員名單 ...

學員管理系統辣雞版

1.新增學員 2.修改學員 3.查詢學員 4.刪除學員 0.退出程式 宣告乙個大列表,存放學員姓名 student list while true print 1.新增學員 print 2.修改學員 print 3.查詢學員 print 4.刪除學員 print 0.退出程式 選擇操作 num in...

Python學員資訊管理系統

coding utf 8 time 2018 6 8 16 33 author cai jinzhi file student manage system.py 定義乙個用於存放學員資訊的列表變數 stulist 定義乙個學生資訊的輸出函式 def showstu stulist 學生資訊的輸出函式...