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

请教关于 pywebio 的 table 问题

  •  
  •   oakcdrom · Apr 3, 2022 · 3579 views
    This topic created in 1684 days ago, the information mentioned may be changed or developed.

    请教各位大佬,有谁对 pywebio 比较熟悉,我想循环输出列表里的数据

    现在输出结果如下:

    请问如何能让列表里的数据,都在一行里显示呀??

    5 replies  •  2022-04-04 07:39:59 +08:00
    ec0
    ec0
    Apr 3, 2022
    1
    把 [list] 改成 *[[i] for i in list] ?
    oakcdrom
    oakcdrom
    OP
    Apr 3, 2022
    2
    @ec0 ![]( https://i.bmp.ovh/imgs/2022/04/03/29e749a20b0095de.png)

    非常感谢。。。现在是一列了,请问怎么改成,都在一行里面显示呀。
    SenLief
    SenLief
    Apr 3, 2022❤️1
    3
    put_table(tdata=[['ipv6address', ':'.join(list)]])

    是这个意思的?
    ec0
    ec0
    Apr 3, 2022
    4
    把 [list] 改成 list ?
    oakcdrom
    oakcdrom
    OP
    Apr 4, 2022
    5
    @SenLief 非常感谢大佬解答,已投币~~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3597 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 01:01 · PVG 09:01 · LAX 17:01 · JFK 20:01
    ♥ Do have faith in what you're doing.