总结了10道题的考试侧重点,供参考:
- How are arguments passed – by reference of by value?
考的是语法,基本功,虽说python程序员可以不用关心堆栈指针那些头疼的东东,但传引用和传值的区别还是必需清楚的。个人感觉从python中一切都是对象的角度看,第一题问传值还是传引用其实是考官有意看面试者是不是概念清楚,真正希望考生回答的是哪些对象传递到函数中是只读的或者说不可变的。
- Do you know what list and dict comprehensions are? Can you give an example?
典型的pythonic用法
是不是有良好的编码习惯
- Do you use virtual environments?
是不是有独立配开发环境的能力
- Can you sum all of the elements in the list, how about to multuply them and get the result?
期待你用pythonic方式解决
- Do you know what is the difference between lists and tuples? Can you give me an example for their usage?
python中两种最基本常用的数据结构
- Do you know the difference between range and xrange?
期待你清楚generator及其是如何使用内存的,generator用法还是典型的pythonic
- Tell me a few differences between Python 2.x and 3.x
希望你对新老产品都有所关注
- What are decorators and what is their usage?
典型的pythonic用法
- 10.The with statement and its usage.
典型的pythonic语法
参考链接
http://ilian.i-n-i.org/python-interview-question-and-answers/
http://www.**.com/group/topic/38792398/