V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
songdg
V2EX  ›  Python

np.loadtxt 读取文本, converters 有多个函数该怎么写

  •  
  •   songdg · Sep 18, 2019 · 2858 views
    This topic created in 2425 days ago, the information mentioned may be changed or developed.

    自定义函数是 timestr2num 和 direction 分别转化 0、1 列,converters={0:timestr2num, 1:direction}会出错

    1 replies    2019-09-19 00:56:16 +08:00
    songdg
        1
    songdg  
    OP
       Sep 19, 2019
    这样写没错,是其他问题,已解决。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2958 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 07:26 · PVG 15:26 · LAX 00:26 · JFK 03:26
    ♥ Do have faith in what you're doing.