Python 面试必读

ython Interview Question and Answers( 面试问题与解答 ) 

原文链接: 
http://ilian.i-n-i.org/python-interview-question-and-answers/ 


总结了10道题的考试侧重点,供参考: 
1.How are arguments passed – by reference of by value? 
考的是语法,基本功,虽说python程序员可以不用关心堆栈指针那些头疼的东东,但传引用和传值的区别还是必需清楚的。 

2.Do you know what list and dict comprehensions are? Can you give an example? 
典型的pythonic用法 

3.What is PEP 8? 
是不是有良好的编码习惯 

4.Do you use virtual environments? 
是不是有独立配开发环境的能力 

5.Can you sum all of the elements in the list, how about to multuply them and get the result? 
期待你用pythonic方式解决 

6.Do you know what is the difference between lists and tuples? Can you give me an example for their usage? 
python中两种最基本常用的数据结构 

7.Do you know the difference between range and xrange? 
期待你清楚generator及其是如何使用内存的,generator用法还是典型的pythonic 

8.Tell me a few differences between Python 2.x and 3.x 
希望你对新老产品都有所关注 

9.What are decorators and what is their usage? 
典型的pythonic用法 

10.The with statement and its usage. 
典型的pythonic语法 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。