 PyWebIO v1.2.3 Documentationsession. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve bind it to the /tool path. After starting the Tornado server, you can visit http:// localhost/tool to open the PyWebIO application. Attention: PyWebIO uses the WebSocket protocol to communicate with the browser0 码力 | 92 页 | 1.32 MB | 1 年前3 PyWebIO v1.2.3 Documentationsession. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve bind it to the /tool path. After starting the Tornado server, you can visit http:// localhost/tool to open the PyWebIO application. Attention: PyWebIO uses the WebSocket protocol to communicate with the browser0 码力 | 92 页 | 1.32 MB | 1 年前3
 PyWebIO v1.2.2 Documentationsession. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve bind it to the /tool path. After starting the Tornado server, you can visit http:// localhost/tool to open the PyWebIO application. Attention: PyWebIO uses the WebSocket protocol to communicate with the browser0 码力 | 92 页 | 1.35 MB | 1 年前3 PyWebIO v1.2.2 Documentationsession. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve bind it to the /tool path. After starting the Tornado server, you can visit http:// localhost/tool to open the PyWebIO application. Attention: PyWebIO uses the WebSocket protocol to communicate with the browser0 码力 | 92 页 | 1.35 MB | 1 年前3
 PyWebIO v1.2.3 Documentationscope to output. The scope name is unique within the session. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: The results of the above code are button" % btn_val) put_buttons(['A', 'B', 'C'], onclick=btn_click) with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 in scope1') # output text to scope1 put_text('text server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve0 码力 | 119 页 | 7.43 MB | 1 年前3 PyWebIO v1.2.3 Documentationscope to output. The scope name is unique within the session. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: The results of the above code are button" % btn_val) put_buttons(['A', 'B', 'C'], onclick=btn_click) with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 in scope1') # output text to scope1 put_text('text server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve0 码力 | 119 页 | 7.43 MB | 1 年前3
 PyWebIO v1.2.2 Documentationscope to output. The scope name is unique within the session. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: The results of the above code are button" % btn_val) put_buttons(['A', 'B', 'C'], onclick=btn_click) with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 in scope1') # output text to scope1 put_text('text server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve0 码力 | 119 页 | 7.41 MB | 1 年前3 PyWebIO v1.2.2 Documentationscope to output. The scope name is unique within the session. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: The results of the above code are button" % btn_val) put_buttons(['A', 'B', 'C'], onclick=btn_click) with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 in scope1') # output text to scope1 put_text('text server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve0 码力 | 119 页 | 7.41 MB | 1 年前3
 PyWebIO v1.3.3 Documentationsession. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve application to the /tool path. After starting the Tornado server, you can visit http://localhost/tool to open the PyWebIO application. Attention: PyWebIO uses the WebSocket protocol to communicate with the browser0 码力 | 100 页 | 1.34 MB | 1 年前3 PyWebIO v1.3.3 Documentationsession. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve application to the /tool path. After starting the Tornado server, you can visit http://localhost/tool to open the PyWebIO application. Attention: PyWebIO uses the WebSocket protocol to communicate with the browser0 码力 | 100 页 | 1.34 MB | 1 年前3
 PyWebIO v1.3.1 Documentationsession. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve application to the /tool path. After starting the Tornado server, you can visit http://localhost/tool to open the PyWebIO application. Attention: PyWebIO uses the WebSocket protocol to communicate with the browser0 码力 | 100 页 | 1.34 MB | 1 年前3 PyWebIO v1.3.1 Documentationsession. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve application to the /tool path. After starting the Tornado server, you can visit http://localhost/tool to open the PyWebIO application. Attention: PyWebIO uses the WebSocket protocol to communicate with the browser0 码力 | 100 页 | 1.34 MB | 1 年前3
 PyWebIO v1.3.0 Documentationsession. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve application to the /tool path. After starting the Tornado server, you can visit http://localhost/tool to open the PyWebIO application. Attention: PyWebIO uses the WebSocket protocol to communicate with the browser0 码力 | 100 页 | 1.34 MB | 1 年前3 PyWebIO v1.3.0 Documentationsession. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve application to the /tool path. After starting the Tornado server, you can visit http://localhost/tool to open the PyWebIO application. Attention: PyWebIO uses the WebSocket protocol to communicate with the browser0 码力 | 100 页 | 1.34 MB | 1 年前3
 PyWebIO v1.3.2 Documentationsession. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve application to the /tool path. After starting the Tornado server, you can visit http://localhost/tool to open the PyWebIO application. Attention: PyWebIO uses the WebSocket protocol to communicate with the browser0 码力 | 100 页 | 1.34 MB | 1 年前3 PyWebIO v1.3.2 Documentationsession. use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. Use start_server() to start a web server and serve application to the /tool path. After starting the Tornado server, you can visit http://localhost/tool to open the PyWebIO application. Attention: PyWebIO uses the WebSocket protocol to communicate with the browser0 码力 | 100 页 | 1.34 MB | 1 年前3
 PyWebIO v1.6.1 Documentationput_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) # local image put_image('http://example.com/some-image.png') use_scope(). use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. start_server() is the most common way to start a0 码力 | 108 页 | 1.37 MB | 1 年前3 PyWebIO v1.6.1 Documentationput_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) # local image put_image('http://example.com/some-image.png') use_scope(). use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. start_server() is the most common way to start a0 码力 | 108 页 | 1.37 MB | 1 年前3
 PyWebIO v1.5.2 Documentationput_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) # local image put_image('http://example.com/some-image.png') use_scope(). use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. start_server() is the most common way to start a0 码力 | 108 页 | 1.37 MB | 1 年前3 PyWebIO v1.5.2 Documentationput_table([ ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7'], ]) # Image Output put_image(open('/path/to/some/image.png', 'rb').read()) # local image put_image('http://example.com/some-image.png') use_scope(). use_scope() You can use use_scope() to open and enter a new output scope, or enter an existing output scope: with use_scope('scope1'): # open and enter a new output: 'scope1' put_text('text1 server to continuously provide services. When the user accesses the service address, PyWebIO will open a new session and run PyWebIO application in it. start_server() is the most common way to start a0 码力 | 108 页 | 1.37 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9














