Exercises - Functions

 

I, entitled:

  1. The document reads as follows, titled: name, sex, age, salary

 

egon male 18 3000
alex male 38 30000
wupeiqi female 28 20000
yuanhao female 28 10000

    Requirements: Remove each record from a file into a list, each element of the list form {'name':'egon','sex':'male','age':18,'salary':3000}

  The list 1 obtained, the highest-paid extracted person's information

  The resulting list 1 Remove the youngest person information

  4. Table 1, we will get everyone's information in the name mapped to uppercase first letter

  The resulting list 1, a person to filter out names that begin with the information

  6. Print recursive Fibonacci number (numbers and the first two to give a third number, such as: 0112347 ...)

  7. a nested list of many layers, such as l = [1,2, [3, [4,5,6, [7,8, [9,10, [11,12,13, [14,15] ]]]]]], remove all the values ​​recursively

 

Second, the answer

  1. 

 

Guess you like

Origin www.cnblogs.com/binyuanxiang/p/11588326.html