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

小白攒了三个问题: matplotlib 画图时中文出来全是方块; dataframe 的 sort_index 方法加了括号就不能用;我电脑上 b 站弹幕的 websocket 链接和教程里名字不一样...

  •  
  •   yellowtail · Jun 27, 2019 · 2150 views
    This topic created in 2656 days ago, the information mentioned may be changed or developed.
    2 的错误提示 TypeError: '<' not supported between instances of 'str' and 'int (但是不加括号就可以工作)
    3 的弹幕链接名字应该是 broadcast.chat 什么的 我只有 tx-gz3-comet 什么的
    2 replies  •  2019-07-01 18:00:32 +08:00
    silkriver
        1
    silkriver  
       Jun 28, 2019   ❤️ 1
    1 https://www.jianshu.com/p/6f9f6b2c6067
    2 3 需要发具体的代码
    princelai
        2
    princelai  
       Jul 1, 2019   ❤️ 1
    第一个问题看楼上,设置下就好,
    第二个问题,执行我下面的代码看看,思考下

    ```
    df = pd.DataFrame({'A':[1,2,3,'a','b'],'B':['1','2','3','a','b']})

    df.set_index('A').sort_index()

    df.set_index('B').sort_index()

    ```
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   752 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 87ms · UTC 22:34 · PVG 06:34 · LAX 15:34 · JFK 18:34
    ♥ Do have faith in what you're doing.