method "get_row_members(self , index)" return the specific element from every row
method "delete_column(self , index)" delete specific column from self instance
method "add_lastname_column(self, lastname , index)" can add the lastname to the specific column
match function return a dictionary "{word : part of speech}"
sort by lowercase
print dictionary value if key contains "s" word
員工編號 | 姓名 | 職位 | 單位 | 月薪 |
---|---|---|---|---|
A001 | 張無忌 | 教主 | 總壇 | 200,000 |
A002 | 楊逍 | 光明左使 | 總壇 | 100,000 |
A003 | 范遙 | 光明右使 | 總壇 | 100,000 |
A004 | 謝遜 | 金毛獅王 | 護教法王 | 80,000 |
A005 | 吳金 | 掌旗使 | 五行旗(銳金旗) | 50,000 |
I used list to store the data except name
I used dictionary to store firstname and lastname
The form is in "input2.txt"
function insert_data(data , input_str , flag)
When flag is set to false , input_str is the title of the form
function pay_raise(input_name , raise_number , data) search by the lastname and update the salary
function search(input_name , data) print name and position by searching the unit