Python 面试题分享

2019-03-02 12:00:44 +08:00
 xiaoheijw

收集了一些 python 的面试题,个人认为是比较全面的 https://github.com/kenwoodjw/python_interview_question 欢迎大家补充。答案还在更新中

6230 次点击
所在节点    Python
20 条回复
Hk4Fun
2019-03-02 12:15:07 +08:00
支持
eric1202
2019-03-02 12:25:03 +08:00
stared
Laodaige
2019-03-02 12:27:16 +08:00
stared
shihaoyu
2019-03-02 16:41:58 +08:00
支持
www5070504
2019-03-02 17:20:59 +08:00
stared
BeanWei
2019-03-02 17:25:32 +08:00
👋👍
911speedstar
2019-03-02 18:39:16 +08:00
赞一个 顺路问下,楼主有没有爬虫的面试题
congeec
2019-03-02 20:16:11 +08:00
Singleton 那儿学到新东西了
mscb
2019-03-02 20:46:15 +08:00
谢谢
meowoo
2019-03-02 21:35:13 +08:00
stared
xiaoheijw
2019-03-02 23:30:55 +08:00
@911speedstar 有部分爬虫题目
rust
2019-03-03 00:24:16 +08:00
绝大多数我都会,是不是算入门了...我主要使用 Rust...
Allianzcortex
2019-03-03 05:50:27 +08:00
并发和并行这里还是看 @laike9m 的这篇文章: https://laike9m.com/blog/huan-zai-yi-huo-bing-fa-he-bing-xing,61/ 。 [ IO 密集型操作使用并发更好。CPU 运算量大的程序,使用并行会更好] 这里应该是多进程更适合 cpu bound,多线程更适合 io bound ?
bugcoder
2019-03-03 06:46:47 +08:00
在 python 里面,还有什么场景需要用到 Singleton 么?
https://stackoverflow.com/questions/31875/is-there-a-simple-elegant-way-to-define-singletons 这儿最 upvote 的回答是喷 singleton 的
laike9m
2019-03-03 07:00:45 +08:00
@Allianzcortex 习惯了,要理解透彻这个问题也不是那么容易。。其实“线程是并发还是并行,进程是并发还是并行?”这个问法就很奇怪,估计是想考察 GIL 吧
diubo
2019-03-03 10:23:25 +08:00
stared
ManjusakaL
2019-03-03 23:15:41 +08:00
@laike9m 这个题考 GIL 也有点牵强
而且这套面试题很多题感觉给我 corner case 的感觉,,除了玩语言的,很少有人会追着这些地方去问。无聊且价值不大
echoyangjx
2019-03-04 13:40:46 +08:00
支持
ManjusakaL
2019-03-05 18:11:45 +08:00
认真看了下。。

![image]( https://user-images.githubusercontent.com/7054676/53797886-143eea80-3f72-11e9-9b06-1e8add83b842.png)

这样的回答,真的不会误导人么?。。
ManjusakaL
2019-03-05 18:31:29 +08:00
认真看了下。。。很多原理性的错误。。要是面试看这个,怕是真的会很惨。。

https://github.com/kenwoodjw/python_interview_question/issues

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/540276

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX