“Discord Table Generator” Kode Jawaban

Tabel dalam Markdown

Colons can be used to align columns.

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3
Charred Dolphin

Discord Table Generator

# pip install -U table2ascii

from table2ascii import table2ascii

output = table2ascii(
    header=["#", "G", "H", "R", "S"],
    body=[["1", "30", "40", "35", "30"], ["2", "30", "40", "35", "30"]],
    footer=["SUM", "130", "140", "135", "130"],
)

await ctx.send(f"```\n{output}\n```")

╔═════════════════════════════╗
║  #     G     H     R     S  ║
╟─────────────────────────────╢
║  1    30    40    35    30  ║
║  2    30    40    35    30  ║
╟─────────────────────────────╢
║ SUM   130   140   135   130 ║
╚═════════════════════════════╝
DenverCoder1

Discord Table Generator

ihioh

ipoh
h
pih
pi
hp
ihphipohh
iiph
ihph
hhpohp
hpohpohphphp
h
ph
ph
ppohp
h
p
Lonely Lizard

Jawaban yang mirip dengan “Discord Table Generator”

Pertanyaan yang mirip dengan “Discord Table Generator”

Lebih banyak jawaban terkait untuk “Discord Table Generator” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya