推荐学习书目
› 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 · 3458 views
    This topic created in 1640 days ago, the information mentioned may be changed or developed.

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

    现在输出结果如下:

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

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

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

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