PyWebIO v1.3.3 Documentationtask 2', app='task_2') # equal to `start_server({'index': index, 'task_1': task_1, 'task_2': task_2})` start_server([index, task_1, task_2]) The start server(). provide provide a remote access support, when enabled (by passing remote_access=True to start_server()), you can get a temporary public network access address for the current application, others can access your threading.Thread(target=show_time).start() put_text('Background task started.') start_server(app, port=8080, debug=True) ## Close of session The close of session may also be caused by the0 码力 | 133 页 | 7.44 MB | 2 年前3
PyWebIO v1.8.2 使用手册服务的最常用方式是使用 start_server() from pywebio import * def main(): # PyWebIO application function name = input.input("what's your name") output.put_text("hello", name) start_server(main 1:8080/ 页面就会看到欢迎页面了。 使用 debug=True 来开启 debug 模式,这时 server 会在检测到代码发生更改后进行重启。 start_server() 提供了对远程访问的支持,当开启远程访问后(通过在 start_server() 中传入 remote_access=True 开启),你将会得到一个用于访问当前应用的临时的公网访问地址,其他任何人都可以使用此地址访问你的应 number:') # error pywebio.start_server(my_task_func, port=int(port)) ## Script 模式 如果你在代码中没有调用 start_server() 或 path_deploy() 函数,那么你就是以脚本模式在运行 PyWebIO 应用。 在脚本模式中,当首次运行到对 PyWebIO 交互函数的调用时,会自动打开浏览器的一个页面,后续的0 码力 | 135 页 | 1.75 MB | 2 年前3
PyWebIO v1.7.0 DocumentationOverview - Pin widgets - Pin utils - Advanced topic - Start multiple applications with start_server(). - Integration with web framework - Coroutine-based session - Libraries support name = input.input("what's your name") output.put_text("hello", name) start_server(main, port=8080, debug=True) Now head over to http://127.0.0.1:8080/, and you should see your will automatically reload if code changes. The start_server(). provide a remote access support, when enabled (by passing remote_access=True to start_server()). you will get a public, shareable address for0 码力 | 149 页 | 7.46 MB | 2 年前3
PyWebIO v1.4.0 DocumentationOverview - Pin widgets - Pin utils - Advanced topic - Start multiple applications with start_server(). - Integration with web framework - Coroutine-based session - Libraries support name = input.input("what's your name") output.put_text("hello", name) start_server(main, port=8080, debug=True) Now head over to http://127.0.0.1:8080/, and you should see your start server(). provide a remote access support, when enabled (by passing remote_access=True to start_server()). you will get a public, shareable address for the current application, others can access your0 码力 | 135 页 | 7.45 MB | 2 年前3
PyWebIO v1.6.0 Documentationaccesses the service address, PyWebIO will open a new session and run PyWebIO application in it. start_server() is the most common way to start a web server to serve given PyWebIO applications: from pywebio name = input.input("what's your name") output.put_text("hello", name) start_server(main, port=8080, debug=True) Now head over to http://127.0.0.1:8080/, and you should see your will automatically reload if code changes. The start_server() provide a remote access support, when enabled (by passing remote_access=True to start_server(), you will get a public, shareable address for0 码力 | 108 页 | 1.37 MB | 2 年前3
PyWebIO v1.5.0 Documentationaccesses the service address, PyWebIO will open a new session and run PyWebIO application in it. start_server() is the most common way to start a web server to serve given PyWebIO applications: from pywebio name = input.input("what's your name") output.put_text("hello", name) start_server(main, port=8080, debug=True) Now head over to http://127.0.0.1:8080/, and you should see your will automatically reload if code changes. The start_server() provide a remote access support, when enabled (by passing remote_access=True to start_server(), you will get a public, shareable address for0 码力 | 108 页 | 1.37 MB | 2 年前3
PyWebIO v1.4.0 Documentationaccesses the service address, PyWebIO will open a new session and run PyWebIO application in it. start_server() is the most common way to start a web server to serve given PyWebIO applications: from pywebio name = input.input("what's your name") output.put_text("hello", name) start_server(main, port=8080, debug=True) Now head over to http://127.0.0.1:8080/, and you should see your will automatically reload if code changes. The start_server() provide a remote access support, when enabled (by passing remote_access=True to start_server(), you will get a public, shareable address for0 码力 | 102 页 | 1.35 MB | 2 年前3
PyWebIO v1.6.2 Documentationaccesses the service address, PyWebIO will open a new session and run PyWebIO application in it. start_server() is the most common way to start a web server to serve given PyWebIO applications: from pywebio name = input.input("what's your name") output.put_text("hello", name) start_server(main, port=8080, debug=True) Now head over to http://127.0.0.1:8080/, and you should see your will automatically reload if code changes. The start_server() provide a remote access support, when enabled (by passing remote_access=True to start_server(), you will get a public, shareable address for0 码力 | 108 页 | 1.37 MB | 2 年前3
PyWebIO v1.8.0 Documentationaccesses the service address, PyWebIO will open a new session and run PyWebIO application in it. start_server() is the most common way to start a web server to serve given PyWebIO applications: from pywebio name = input.input("what's your name") output.put_text("hello", name) start_server(main, port=8080, debug=True) Now head over to http://127.0.0.1:8080/, and you should see your will automatically reload if code changes. The start_server() provide a remote access support, when enabled (by passing remote_access=True to start_server(), you will get a public, shareable address for0 码力 | 118 页 | 1.40 MB | 2 年前3
PyWebIO v1.8.2 Documentationaccesses the service address, PyWebIO will open a new session and run PyWebIO application in it. start_server() is the most common way to start a web server to serve given PyWebIO applications: from pywebio name = input.input("what's your name") output.put_text("hello", name) start_server(main, port=8080, debug=True) Now head over to http://127.0.0.1:8080/, and you should see your will automatically reload if code changes. The start_server() provide a remote access support, when enabled (by passing remote_access=True to start_server(), you will get a public, shareable address for0 码力 | 118 页 | 1.40 MB | 2 年前3
共 127 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13













