MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / basic_output

Function basic_output

test/template.py:29–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def basic_output():
30 set_env(title="PyWebIO Test")
31 set_scope('top')
32
33 put_markdown('### Basic')
34 for i in range(3):
35 put_text('text_%s' % i)
36
37 put_text('测试空格:20空格:[%s]结束' % (' ' * 20))
38
39 for i in range(3):
40 put_text('inline_text_%s' % i, inline=True)
41
42 put_markdown("""### put_markdown 测试
43 `行内代码`
44
45 无序列表:
46 - 北京
47 - 上海
48 - 天津
49
50 有序列表:
51 1. 北京
52 2. 上海
53 3. 天津
54
55 [链接](./#)
56 ~~删除线~~
57 """)
58
59 put_link('链接', '#')
60
61 put_text('<hr/>:')
62 put_html("<hr/>")
63
64 put_markdown('### Style')
65 put_text('Red').style('color:red')
66
67 put_text('Red').style('color:red')
68 put_markdown('~~del~~').style('color:red')
69
70 put_table([
71 ['A', 'B'],
72 ['C', put_text('Red').style('color:red')],
73 ])
74
75 put_collapse('title', [
76 put_text('text').style('margin-left:20px'),
77 put_markdown('~~del~~').style('margin-left:20px'),
78 ], open=True)
79
80 put_markdown('### Table')
81 put_table([
82 ['Name', 'Gender', 'Address'],
83 ['Wang', 'M', 'China'],
84 ['Liu', 'W', 'America'],
85 ])
86

Callers

nothing calls this directly

Calls 15

set_envFunction · 0.85
set_scopeFunction · 0.85
put_markdownFunction · 0.85
put_textFunction · 0.85
put_linkFunction · 0.85
put_htmlFunction · 0.85
put_tableFunction · 0.85
put_collapseFunction · 0.85
put_buttonsFunction · 0.85
put_fileFunction · 0.85
put_imageFunction · 0.85
use_scopeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…