[1] pen questions test micro-channel group to see the interview pen post test questions, the next mark

1, logical thinking title

 

 

 Baidu to find answers:

The logical answer to the question: No. 1-100 boxes, each box taken with the same number of prime numbers, weighing less how much money, how much is the box number is not.
Foot For example, if the No. 1 box of gold is grinding corrupt. the No. 1 box old took out a piece of gold, so gold other boxes are full, so the entire weighing 1 less money, so is the No. 1 box

 

2、

 

 

 

Here json.dumps to use built-in functions () function: the reconciliation converted into python json format data, and some parameters can be used, sort_keys tells the encoder according to the sort key dictionary (a to z) output .

This topic can also write a

 

 

 

3, sql topics:

 

 

 

SELECT name,course
CASE
WHEN score >= 90 AND score <= 100  THEN 'A'  
WHEN score >=75 AND score <= 89  THEN 'B'  
WHEN score > 60 AND score <= 74  THEN 'C'  
ELSE 'D' END 等级,
FROM
成绩表
where socre = '语文'

 

 

 

Guess you like

Origin www.cnblogs.com/yuanyuan2017/p/11533873.html