推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
xiaoheijw
V2EX  ›  Python

Python 面试题分享

  •  2
     
  •   xiaoheijw · Mar 2, 2019 · 8317 views
    This topic created in 2808 days ago, the information mentioned may be changed or developed.

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

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

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

    这样的回答,真的不会误导人么?。。
    ManjusakaL
    ManjusakaL
    Mar 5, 2019
    20
    认真看了下。。。很多原理性的错误。。要是面试看这个,怕是真的会很惨。。

    https://github.com/kenwoodjw/python_interview_question/issues
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1448 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 11:29 · PVG 19:29 · LAX 03:29 · JFK 06:29
    ♥ Do have faith in what you're doing.