PyWebIO v0.3.0 使用手册如果没有使用PywWebIO,这只是一个非常简单的脚本,而通过使用 PywWebIO提供的输入输出函数,你可以在浏览器中与代码进行交互: 将上面代码最后一行对 bmi() 的直接调用改为使用 pywebio.start_server(bmi, port=80) 便可以在80端口提供 bmi() 服务。 将 bmi() 服务整合到现有的Web 框架请参考 与Web框架集成 Documentation 这个文档同时也提供 valid_func=check_age) 当用户输入了不合法的值时,页面上的显示如下: pywebio.input.textarea() 还支持使用 Codemirror [https://codemirror.net/] 实现代码 风格的编辑区,只需使用 code 参数传入Codemirror支持的选项即可(最简单的 情况是直接传入 code={} 或 code=True): code = textarea('Code https://codemirror.net/demo/theme.html#cobalt to get more themes }, value='import something\n# Write your python code') 文本框的显示效果为: 这里 列举了一些常用的Codemirror选项 完整的Codemirror选项请见:https://codemirror.net/doc/manual0 码力 | 72 页 | 8.55 MB | 1 年前3
PyWebIO v1.2.3 DocumentationIn the last line of the above code, changing the function call bmi() to pywebio.start_server(bmi, port=80) will start a bmi web service on port 80 ( online Demo [http://pywebio-demos.demo.wangweimin.site/ input.textarea() to make a code editing textarea. This feature uses Codemirror [https://codemirror.net/] as underlying implementation. The code parameter accept the Codemirror options as a dict. The results commonly used Codemirror options. For complete Codemirror options, please visit: https://codemirror.net/doc/manual.html#config Input Group PyWebIO uses input group to get multiple inputs in a single form0 码力 | 119 页 | 7.43 MB | 1 年前3
PyWebIO v1.2.2 DocumentationIn the last line of the above code, changing the function call bmi() to pywebio.start_server(bmi, port=80) will start a bmi web service on port 80 ( online Demo [http://pywebio-demos.demo.wangweimin.site/ input.textarea() to make a code editing textarea. This feature uses Codemirror [https://codemirror.net/] as underlying implementation. The code parameter accept the Codemirror options as a dict. The results commonly used Codemirror options. For complete Codemirror options, please visit: https://codemirror.net/doc/manual.html#config Input Group PyWebIO uses input group to get multiple inputs in a single form0 码力 | 119 页 | 7.41 MB | 1 年前3
PyWebIO v1.3.2 DocumentationIn the last line of the above code, changing the function call bmi() to pywebio.start_server(bmi, port=80) will start a bmi web service on port 80 ( online Demo [http://pywebio-demos.demo.wangweimin.site/bmi] input.textarea() to make a code editing textarea. This feature uses Codemirror [https://codemirror.net/] as underlying implementation. The code parameter accept the Codemirror options as a dict. The results commonly used Codemirror options. For complete Codemirror options, please visit: https://codemirror.net/doc/manual.html#config Input Group PyWebIO uses input group to get multiple inputs in a single form0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.0 DocumentationIn the last line of the above code, changing the function call bmi() to pywebio.start_server(bmi, port=80) will start a bmi web service on port 80 ( online Demo [http://pywebio-demos.demo.wangweimin.site/bmi] input.textarea() to make a code editing textarea. This feature uses Codemirror [https://codemirror.net/] as underlying implementation. The code parameter accept the Codemirror options as a dict. The results commonly used Codemirror options. For complete Codemirror options, please visit: https://codemirror.net/doc/manual.html#config Input Group PyWebIO uses input group to get multiple inputs in a single form0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.1 DocumentationIn the last line of the above code, changing the function call bmi() to pywebio.start_server(bmi, port=80) will start a bmi web service on port 80 ( online Demo [http://pywebio-demos.demo.wangweimin.site/bmi] input.textarea() to make a code editing textarea. This feature uses Codemirror [https://codemirror.net/] as underlying implementation. The code parameter accept the Codemirror options as a dict. The results commonly used Codemirror options. For complete Codemirror options, please visit: https://codemirror.net/doc/manual.html#config Input Group PyWebIO uses input group to get multiple inputs in a single form0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.3 DocumentationIn the last line of the above code, changing the function call bmi() to pywebio.start_server(bmi, port=80) will start a bmi web service on port 80 ( online Demo [http://pywebio-demos.demo.wangweimin.site/bmi] input.textarea() to make a code editing textarea. This feature uses Codemirror [https://codemirror.net/] as underlying implementation. The code parameter accept the Codemirror options as a dict. The results commonly used Codemirror options. For complete Codemirror options, please visit: https://codemirror.net/doc/manual.html#config Input Group PyWebIO uses input group to get multiple inputs in a single form0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.0.3 使用手册如果没有使用PyWebIO,这只是一个非常简单的脚本,而通过使用PyWebIO提 供的输入输出函数,你可以在浏览器中与代码进行交互: 将上面代码最后一行对 bmi() 的直接调用改为使用 pywebio.start_server(bmi, port=80) 便可以在80端口提供 bmi() 服务( 在线Demo [http://pywebio- demos.demo.wangweimin.site/?pywebio_api=bmi] [https://codemirror.net/] 实现代码 风格的编辑区,只需使用 code 参数传入Codemirror支持的选项即可(最简单的 情况是直接传入 code={} 或 code=True): 文本框的显示效果为: 这里 列举了一些常用的Codemirror选项,完整的Codemirror选项请见: https://codemirror.net/doc/manual.html#config 'mode': "python", # 编辑区代码语言 'theme': 'darcula', # 编辑区darcula主题, Visit https://codemirror.net/demo/theme.html#cobalt to get more themes }, value='import something\n# Write your python code') 输入组中同样支持使用0 码力 | 106 页 | 7.34 MB | 1 年前3
PyWebIO v1.2.3 使用手册如果没有使用PyWebIO,这只是一个非常简单的脚本,而通过使用PyWebIO提 供的输入输出函数,你可以在浏览器中与代码进行交互: 将上面代码最后一行对 bmi() 的直接调用改为使用 pywebio.start_server(bmi, port=80) 便可以在80端口提供 bmi() 服务( 在线Demo [http://pywebio- demos.demo.wangweimin.site/?pywebio_api=bmi] [https://codemirror.net/] 实现代码 风格的编辑区,只需使用 code 参数传入Codemirror支持的选项即可(最简单的 情况是直接传入 code={} 或 code=True): 以上代码将在浏览器上显示如下: 这里 列举了一些常用的Codemirror选项,完整的Codemirror选项请见: https://codemirror.net/doc/manual.html#config "python", # code language 'theme': 'darcula', # Codemirror theme. Visit https://codemirror.net/demo/theme.html#cobalt to get more themes }, value='import something\n# Write your python code') 输入组中同样支持使用0 码力 | 119 页 | 7.44 MB | 1 年前3
PyWebIO v1.2.2 使用手册如果没有使用PyWebIO,这只是一个非常简单的脚本,而通过使用PyWebIO提 供的输入输出函数,你可以在浏览器中与代码进行交互: 将上面代码最后一行对 bmi() 的直接调用改为使用 pywebio.start_server(bmi, port=80) 便可以在80端口提供 bmi() 服务( 在线Demo [http://pywebio- demos.demo.wangweimin.site/?pywebio_api=bmi] [https://codemirror.net/] 实现代码 风格的编辑区,只需使用 code 参数传入Codemirror支持的选项即可(最简单的 情况是直接传入 code={} 或 code=True): 以上代码将在浏览器上显示如下: 这里 列举了一些常用的Codemirror选项,完整的Codemirror选项请见: https://codemirror.net/doc/manual.html#config "python", # code language 'theme': 'darcula', # Codemirror theme. Visit https://codemirror.net/demo/theme.html#cobalt to get more themes }, value='import something\n# Write your python code') 入数据为值的字典:0 码力 | 119 页 | 7.41 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













