V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
mythmgn
V2EX  ›  Python

想写 Python 入门之后的踩坑指南

  •  
  •   mythmgn · 2019-06-04 19:39:27 +08:00 · 2235 次点击
    这是一个创建于 1788 天前的主题,其中的信息可能已经有所发展或是发生改变。
    前段时间帮组里新入职同学推荐 Python 书籍, 发现了一个有趣的现象:

    [1] 入门型书籍非常多, 从入门到精通, 多少天学会 Python, 实战指南, list goes on

    [2] 专用型也非常多, 像数据分析类, 爬虫类


    结论是, 缺少介于两者之间的资料或者经验总结:
    a. 已入门, 可以写 python 程序的同学
    b. 已在写 python 程序, 但时间未长的同学

    于是有了 Python 踩坑之旅 的想法, 开了 github, 有兴趣的朋友可以一起写啊, 目前写了 4 篇半. 大约一周一篇的样子.

    https://github.com/mythmgn/awesome_py_traps
    第 1 条附言  ·  2019-07-01 10:10:48 +08:00

    三个方式关注

    6 条回复    2019-07-01 10:08:17 +08:00
    freshmanc
        1
    freshmanc  
       2019-06-05 01:22:34 +08:00
    可以看看这个
    [wtfpython]( https://github.com/satwikkansal/wtfpython)
    xsiong
        2
    xsiong  
       2019-06-05 10:57:51 +08:00
    java 过来的学 py 感觉智商收到了侮辱
    mythmgn
        3
    mythmgn  
    OP
       2019-06-05 11:18:01 +08:00
    @freshmanc 这个感觉更多的是 pythonic 语言方面的 tricks. 我更想写案例的. 你看下我之前每周一篇写的那几个
    mythmgn
        4
    mythmgn  
    OP
       2019-06-05 13:54:40 +08:00
    @xsiong 有一股不明觉厉的感觉 哈哈
    mythmgn
        5
    mythmgn  
    OP
       2019-07-01 10:07:26 +08:00
    前四篇:

    https://www.cnblogs.com/mythmgn

    1. 进程篇:
    其一杀不死的 Shell 子进程
    其二裸用 os.system 的原罪
    其三 pgid 是个什么鬼 (子进程\子孙进程无法 kill 退出的解法)
    其四: 一次性踩透 uid euid suid gid egid sgid 的坑坑洼洼
    mythmgn
        6
    mythmgn  
    OP
       2019-07-01 10:08:17 +08:00
    其五: [修订版] 进程篇其五打不开的新文件 https://www.cnblogs.com/mythmgn/p/11111277.html
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2923 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 13:55 · PVG 21:55 · LAX 06:55 · JFK 09:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.