PyWebIO v1.7.1 Documentationworld!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) # local image put_ put_text(i) put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) Click Callback As we can see from the above, the interaction of PyWebIO has two parts: input element. reference: https://developer.mozilla.org/zh- CN/docs/Web/HTML/Element/input#%E5%B1%9E%E6% 0%A7 options (list) – list of options. The available formats of the list items are: dict: { "label":(str)0 码力 | 152 页 | 7.47 MB | 1 年前3
PyWebIO v1.7.1 使用手册world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) # local image put_ put_text(i) put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) 从上面可以看出,PyWebIO把交互分成了输入和输出两部分:输入函数为阻塞 式调用,会在用户浏览器上显示一个表单,在用户提交表单之前输入函数将不 会返回;输出函数将内容实时输出至浏览器。这种交互方式和控制台程序是一 put_code('E') ]) 更多布局函数的用法及代码示例请查阅 布局函数文档 . 样式 如果你熟悉 CSS样式 [https://www.google.com/search?q=CSS%E6%A0%B7%E5%BC%8F] ,你还 可以在输出函数后调用 style() 方法给输出设定自定义样式。 可以给单个的 put_xxx() 输出设定CSS样式,也可以配合组合输出使用: style() 方法0 码力 | 151 页 | 7.47 MB | 1 年前3
PyWebIO v1.8.2 使用手册world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) # local image put_ put_text(i) put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) 从上面可以看出,PyWebIO把交互分成了输入和输出两部分:输入函数为阻塞 式调用,会在用户浏览器上显示一个表单,在用户提交表单之前输入函数将不 会返回;输出函数将内容实时输出至浏览器。这种交互方式和控制台程序是一 put_code('E') ]) 更多布局函数的用法及代码示例请查阅 布局函数文档 . 样式 如果你熟悉 CSS样式 [https://www.google.com/search?q=CSS%E6%A0%B7%E5%BC%8F] ,你还 可以在输出函数后调用 style() 方法给输出设定自定义样式。 可以给单个的 put_xxx() 输出设定CSS样式,也可以配合组合输出使用: style() 方法0 码力 | 160 页 | 7.48 MB | 1 年前3
PyWebIO v1.8.1 使用手册world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) # local image put_ put_text(i) put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) 从上面可以看出,PyWebIO把交互分成了输入和输出两部分:输入函数为阻塞 式调用,会在用户浏览器上显示一个表单,在用户提交表单之前输入函数将不 会返回;输出函数将内容实时输出至浏览器。这种交互方式和控制台程序是一 put_code('E') ]) 更多布局函数的用法及代码示例请查阅 布局函数文档 . 样式 如果你熟悉 CSS样式 [https://www.google.com/search?q=CSS%E6%A0%B7%E5%BC%8F] ,你还 可以在输出函数后调用 style() 方法给输出设定自定义样式。 可以给单个的 put_xxx() 输出设定CSS样式,也可以配合组合输出使用: style() 方法0 码力 | 158 页 | 7.48 MB | 1 年前3
PyWebIO v1.8.0 使用手册world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) # local image put_ put_text(i) put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) 从上面可以看出,PyWebIO把交互分成了输入和输出两部分:输入函数为阻塞 式调用,会在用户浏览器上显示一个表单,在用户提交表单之前输入函数将不 会返回;输出函数将内容实时输出至浏览器。这种交互方式和控制台程序是一 put_code('E') ]) 更多布局函数的用法及代码示例请查阅 布局函数文档 . 样式 如果你熟悉 CSS样式 [https://www.google.com/search?q=CSS%E6%A0%B7%E5%BC%8F] ,你还 可以在输出函数后调用 style() 方法给输出设定自定义样式。 可以给单个的 put_xxx() 输出设定CSS样式,也可以配合组合输出使用: style() 方法0 码力 | 157 页 | 7.48 MB | 1 年前3
PyWebIO v1.8.2 使用手册world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) # local image put_ put_text(i) put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) 从上面可以看出,PyWebIO把交互分成了输入和输出两部分:输入函数为阻塞 式调用,会在用户浏览器上显示一个表单,在用户提交表单之前输入函数将不 会返回;输出函数将内容实时输出至浏览器。这种交互方式和控制台程序是一 put_code('E') ]) 更多布局函数的用法及代码示例请查阅 布局函数文档 . 样式 如果你熟悉 CSS样式 [https://www.google.com/search?q=CSS%E6%A0%B7%E5%BC%8F] ,你还 可以在输出函数后调用 style() 方法给输出设定自定义样式。 可以给单个的 put_xxx() 输出设定CSS样式,也可以配合组合输出使用: style() 方法0 码力 | 158 页 | 7.48 MB | 1 年前3
PyWebIO v1.8.2 使用手册world!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) # local image put_ put_text(i) put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) 从上面可以看出,PyWebIO把交互分成了输入和输出两部分:输入函数为阻塞 式调用,会在用户浏览器上显示一个表单,在用户提交表单之前输入函数将不 会返回;输出函数将内容实时输出至浏览器。这种交互方式和控制台程序是一 put_code('E') ]) 更多布局函数的用法及代码示例请查阅 布局函数文档 . 样式 如果你熟悉 CSS样式 [https://www.google.com/search?q=CSS%E6%A0%B7%E5%BC%8F] ,你还 可以在输出函数后调用 style() 方法给输出设定自定义样式。 可以给单个的 put_xxx() 输出设定CSS样式,也可以配合组合输出使用: style() 方法0 码力 | 160 页 | 7.48 MB | 1 年前3
PyWebIO v1.8.1 Documentationworld!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) For all output functions provided by PyWebIO, please refer to the pywebio.output module. In put_text(i) put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) Click Callback As we can see from the above, the interaction of PyWebIO has two parts: input element. reference: https://developer.mozilla.org/zh- CN/docs/Web/HTML/Element/input#%E5%B1%9E%E6% 0%A7 By default, only one option can be selected at a time, you can set multiple parameter to enable multiple0 码力 | 160 页 | 7.47 MB | 1 年前3
PyWebIO v1.8.2 Documentationworld!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) For all output functions provided by PyWebIO, please refer to the pywebio.output module. In put_text(i) put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) Click Callback As we can see from the above, the interaction of PyWebIO has two parts: input element. reference: https://developer.mozilla.org/zh- CN/docs/Web/HTML/Element/input#%E5%B1%9E%E6% 0%A7 By default, only one option can be selected at a time, you can set multiple parameter to enable multiple0 码力 | 160 页 | 7.47 MB | 1 年前3
PyWebIO v1.8.0 Documentationworld!") # Table Output put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) For all output functions provided by PyWebIO, please refer to the pywebio.output module. In put_text(i) put_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) Click Callback As we can see from the above, the interaction of PyWebIO has two parts: input element. reference: https://developer.mozilla.org/zh- CN/docs/Web/HTML/Element/input#%E5%B1%9E%E6% 0%A7 By default, only one option can be selected at a time, you can set multiple parameter to enable multiple0 码力 | 159 页 | 7.47 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













