sys staff_list = () f = (staff_list) c = f.readlines() : user_input = ().strip() user_input == : i (,): password = ().strip() password == : : % (user_input) : sys.exit() : choose = ().strip() choose == : name = ().strip() (name) == : line c: x = line.split() (x) != : sys.exit() name == x[]: line f.close() choose == : name = ().strip() (name) == : line c: x = line.split() name == x[]: %(name) : f.close() : num = ().strip() (num) == : : : Dep = ().strip() (Dep) == : : : other = ().strip() (other) == : : line = % (num,name,Dep,other) f = (,) f.write(line) f.close() line,choose == : name = ().strip() (name) == : rm_del = (% (name).upper().startswith()) rm_del: list = line c: x = line.split() x name != x[]: list = list + line f.close() f = (,) f.write(list) f.close() name,: choose == : name = ().strip() (name) == : number = ().strip() column = list = line c: x = line.split() x name == x[]: x[column] = number : list = list + line f.close() f = (,) f.write(list) f.close() choose == : f.close() sys.exit()
python員工查詢表
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.