While I haven't interviewed precisely for Python, I've been
on the other (interviewing) end and can offer a few of the
sorts of things I ask. I don't expect perfect answers to
all of them, but they show me a range of what the
interviewee knows. I try and give a scattershot of
questions from the following areas to try and narrow down
where they fall in terms of pythonability, and then grill
more deeply around the edges that I find.
Basic Python:
=============
- do they know a tuple/list/dict when they see it?
- when to use list vs. tuple vs. dict. vs. set
- can they use list comprehensions (and know when not to
abuse them? :)
- can they use tuple unpacking for assignment?
- string building...do they use "+=" or do they build a list
and use .join() to recombine them efficiently
- truth-value testing questions and observations (do they
write "if x == True" or do they just write "if x")
- basic file-processing (iterating over a file's lines)
- basic understanding of exception handling
Broader Basic Python:
=====================
- questions about the standard library ("do you know if
there's a standard library for doing X?", or "in which
library would you find [common functionality Y]?") Most
of these are related to the more common libraries such as
os/os.path/sys/re/itertools
- questions about iterators/generators
- questions about map/reduce/sum/etc family of functions
- questions about "special" methods (__<foo>__)
More Advanced Python:
=====================
- can they manipulate functions as first-class objects
(Python makes it easy, but do they know how)
- more detailed questions about the std. libraries (such as
datetime/email/csv/zipfile/networking/optparse/unittest)
- questions about testing (unittests/doctests)
- questions about docstrings vs. comments, and the "Why" of
them
- more detailed questions about regular expressions
- questions about mutability
- keyword/list parameters and unpacked kwd args
- questions about popular 3rd-party toolkits (BeautifulSoup,
pyparsing...mostly if they know about them and when to use
them, not so much about implementation details)
- questions about monkey-patching
- questions about PDB
- questions about properties vs. getters/setters
- questions about classmethods
- questions about scope/name-resolution
- use of lambda
Python History:
===============
- decorators added in which version?
- "batteries included" SQL-capible DB in which version?
- the difference between "class Foo" and "class Foo(object)"
- questions from "import this" about pythonic code
Python Resources:
=================
- what do they know about various Python web frameworks
(knowing a few names is usually good enough, though
knowledge about the frameworks is a nice plus) such as
Django, TurboGears, Zope, etc.
- what do they know about various Python GUI framewo
Python经典面试题_IT/计算机_专业资料。Python经典面试题1:Python 如何实现单例模式? Python 有两种方式可以实现单例模式,下面两个例子使用了不同的方式实现单 例...
Python面试题_面试_求职/职场_实用文档。1:Python 如何实现单例模式? Python 有两种方式可以实现单例模式,下面两个例子使用了不同的方式实现单 例模式: 使用 ...
喜欢此文档的还喜欢 可爱的python习题答案 42页 免费 python试卷 4页 免费 python习题 51页 免费 python学习总结 16页 免费 Python经典面试题 11页 1下载券...
Python面试题 11页 免费 Python 复习题 44页 1下载券 Python测试题 4页 1下载券 可爱的python习题答案 42页 免费 Python经典面试题 11页 1下载券...
Python面试题 13页 1下载券可爱的python习题答案 暂无评价0人阅读0次下载举报文档 可爱的...
软件测试面试题整理 32页 1下载券 数据结构面试题(含答案) 暂无评价 9页 免费 Python 必晓知识点-精简... 6页 1下载券软件测试面试...
解释器负责的,开发人员可以从内存管理事务中解放出来, 致力于应用程序的开发,这样就使得开发的程序错误更少,程序更健壮,开发周期更短 9:Python 文件操作的面试题 1...
面试题集合_求职/面试_求职/职场_应用文书。不多说,好东西。...语言家族的习惯(包括 C, C++, C#, Java, JavaScript, Perl, Python 等) 。...
公安机关招警面试题及参... 16页 2下载券喜欢此文档的还喜欢...但注意:提供给你的机器上只有python 2.4/perl 5.8/gcc[g++] 4.1...
热门文档