python 面试必读
by
at 2013-05-05 01:02:18
original http://simple-is-better.com/news/1006
Python 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语法
<p># 来源:<a href="http://www.douban.com/group/topic/38829786/" title="python 面试必读">豆瓣 Django 小组</a></p>
<hr>
<p>
在微博上关注:
<a href="http://t.sina.com.cn/pythoncn">新浪</a>,
<a href="http://t.qq.com/simple-is-better">腾讯</a>
<a href="http://simple-is-better.com/tougao">投稿</a>
</p>
<p><strong>最新招聘</strong></p>
<ul>
<li><a href="http://simple-is-better.com/jobs/detail-128">[广州] Python 程序开发(Django)</a> - 广州市邦富软件有限公司 </li>
<li><a href="http://simple-is-better.com/jobs/detail-103">[上海] Python开发工程师(抓取+Django)</a> - 上海新葵文化传播有限公司</li>
<li><a href="http://simple-is-better.com/jobs/detail-482">[北京] Python 网站开发工程师</a> - 华图图书网</li>
<li><a href="http://simple-is-better.com/jobs/detail-297">[上海] Python 程序开发(Flask)</a> - 上海多米网络</li>
<li><a href="http://simple-is-better.com/jobs/detail-104">[上海] Python开发工程师(用过Pylons,Django)</a> - 上海中新视讯数字科技有限公司</li>
</ul>
<p><a href="http://simple-is-better.com/jobs/">更多>></a></p><img src="http://www1.feedsky.com/t1/727481760/simple-is-better/feedsky/s.gif?r=http://simple-is-better.com/news/1006" border="0" height="0" width="0">