推荐学习书目
› 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
yellowtail
V2EX  ›  Python

每次遇到问题就想重新学一次 Python 是什么心态。。

  •  
  •   yellowtail · May 4, 2019 · 4762 views
    This topic created in 2743 days ago, the information mentioned may be changed or developed.
    https://imgchr.com/i/EdDujJ

    请大佬帮我看看 为什么我的 kdj 里 k 值一直是零 唉!有心无力了
    10 replies  •  2019-05-05 13:39:10 +08:00
    staticer
    staticer
    May 4, 2019❤️1
    1
    我认为可能的原因: 你用的 Python 2, 却在用 Python 3 的除法思想。
    renmu123
    renmu123
    May 4, 2019 via Android
    2
    看这个 print 应该就是 Python2 了,建议转 Python3,坑少多了。看你的代码风格应该是新手(早转早香),可以去看一下 PEP8 规范
    yellowtail
    yellowtail
    OP
    May 4, 2019
    3
    @staticer 不太明白,能不能仔细说一下。。
    yellowtail
    yellowtail
    OP
    May 4, 2019
    4
    @staticer 改了下 rsv_9.loc [i,'k']=2*rsv_9.loc [i,'k']/3+rsv_9.loc [i,'rsv9']/3 有用了!谢谢 (不过这种问题真的好心累)
    lithiumii
    lithiumii
    May 4, 2019
    5
    建议重学,这次学 py 3
    不过话说回来,每次遇到问题就需要学习难道不是很正常的一件事吗?地球上有任何一个正常人类可以做到学一门编程语言只学一次吗?
    inoki
    inoki
    May 4, 2019 via Android❤️1
    6
    2/3 int/int->int
    2.0/3 float/int->float
    mamahaha
    mamahaha
    May 4, 2019
    7
    遇到问题可以歇俩天,尤其是复用结构,有时本来计划结构大调整做好玩命的准备了,两天后想通了改了几行代码就解决了。
    kuangwinnie
    kuangwinnie
    May 5, 2019
    8
    9102 了别写 py2 了我的朋友
    leavic
    leavic
    May 5, 2019
    9
    int/int 得 int
    Northxw
    Northxw
    May 5, 2019
    10
    我一直在猜,都 9102 了,再过几个月 Python 就不支持 2.x 了,是不是还有公司或者人没有转到 3.x。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1169 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 23:56 · PVG 07:56 · LAX 15:56 · JFK 18:56
    ♥ Do have faith in what you're doing.