Flask入门教程
for Windows 后(下一节)附带的 Git Bash。cmder 集成了 Git Bash,支持一些在 Linux 或 macOS 下才能使用的命令 (程序),比如 ls、cat、nano、ssh 等,这些命令我们在后面会用到。 使用 Git Git 是一个流行的版本控制工具,我们可以用它来记录程序源码和文件的变动情 况,或是在编程时进行多人协作,你可以把它看做一个优雅的代码变动备份工具。 账户,点击访问注册页面,根据指示完成注册流程。登录 备用。 设置 SSH 密钥 一般情况下,当推送本地改动到远程仓库时,需要输入用户名和密码。因为传输通 常是通过 SSH 加密,所以可以通过设置 SSH 密钥来省去验证账号的步骤。 首先使用下面的命令检查是否已经创建了 SSH 密钥: 第 1 章:准备工作 9 $ cat ~/.ssh/id_rsa.pub 如果显示“No such file directory”,就使用下面的命令生成 SSH 密钥对,否则复 制输出的值备用: $ ssh-keygen 一路按下 Enter 采用默认值,最后会在用户根目录创建一个 .ssh 文件夹,其中包含 两个文件,id_rsa 和 id_rsa.pub,前者是私钥,不能泄露出去,后者是公钥,用于 认证身份,就是我们要保存到 GitHub 上的密钥值。再次使用前面提到的命令获得 文件内容: $ cat ~/.ssh/id_rsa0 码力 | 127 页 | 7.62 MB | 1 年前3PyWebIO v1.3.3 Documentation
scroll_to(scope) : Scroll the page to the scope 4.1. User’s guide 17 PyWebIO, Release 1.3.3 Page environment settings Page Title You can call set_env(title=...) to set the page title Auto Scroll When performing set_env(output_animation=False) to turn off the animation. To view the effects of environment settings, please visit set_env Demo Layout In general, using the output functions introduced above is enough cdn=True, debug=True, allowed_origins=None, check_origin=None, max_payload_size='200M', **tor- nado_app_settings) Deploy the PyWebIO applications from a directory. The server communicates with the browser using0 码力 | 100 页 | 1.34 MB | 1 年前3PyWebIO v1.3.1 Documentation
scroll_to(scope) : Scroll the page to the scope 4.1. User’s guide 17 PyWebIO, Release 1.3.1 Page environment settings Page Title You can call set_env(title=...) to set the page title Auto Scroll When performing set_env(output_animation=False) to turn off the animation. To view the effects of environment settings, please visit set_env Demo Layout In general, using the output functions introduced above is enough cdn=True, debug=True, allowed_origins=None, check_origin=None, max_payload_size='200M', **tor- nado_app_settings) Deploy the PyWebIO applications from a directory. The server communicates with the browser using0 码力 | 100 页 | 1.34 MB | 1 年前3PyWebIO v1.3.0 Documentation
scroll_to(scope) : Scroll the page to the scope 4.1. User’s guide 17 PyWebIO, Release 1.3.0 Page environment settings Page Title You can call set_env(title=...) to set the page title Auto Scroll When performing set_env(output_animation=False) to turn off the animation. To view the effects of environment settings, please visit set_env Demo Layout In general, using the output functions introduced above is enough cdn=True, debug=True, allowed_origins=None, check_origin=None, max_payload_size='200M', **tor- nado_app_settings) Deploy the PyWebIO applications from a directory. The server communicates with the browser using0 码力 | 100 页 | 1.34 MB | 1 年前3PyWebIO v1.3.2 Documentation
scroll_to(scope) : Scroll the page to the scope 4.1. User’s guide 17 PyWebIO, Release 1.3.2 Page environment settings Page Title You can call set_env(title=...) to set the page title Auto Scroll When performing set_env(output_animation=False) to turn off the animation. To view the effects of environment settings, please visit set_env Demo Layout In general, using the output functions introduced above is enough cdn=True, debug=True, allowed_origins=None, check_origin=None, max_payload_size='200M', **tor- nado_app_settings) Deploy the PyWebIO applications from a directory. The server communicates with the browser using0 码力 | 100 页 | 1.34 MB | 1 年前3PyWebIO v1.3.2 Documentation
scope remove(scope) : Remove scope scroll_to(scope) : Scroll the page to the scope Page environment settings Page Title You can call set_env(title=...) to set the page title。 Auto Scroll with use_scope('scope1'): use set_env(output_animation=False) to turn off the animation. To view the effects of environment settings, please visit set_env Demo [http://pywebio- demos.demo.wangweimin.site/set_env_demo] Layout In cdn=True, debug=True, allowed_origins=None, check_origin=None, max_payload_size='200M', **tornado_app_settings) Deploy the PyWebIO applications from a directory. The server communicates with the browser using0 码力 | 133 页 | 7.44 MB | 1 年前3PyWebIO v1.3.0 Documentation
scope remove(scope) : Remove scope scroll_to(scope) : Scroll the page to the scope Page environment settings Page Title You can call set_env(title=...) to set the page title。 Auto Scroll with use_scope('scope1'): use set_env(output_animation=False) to turn off the animation. To view the effects of environment settings, please visit set_env Demo [http://pywebio- demos.demo.wangweimin.site/set_env_demo] Layout In cdn=True, debug=True, allowed_origins=None, check_origin=None, max_payload_size='200M', **tornado_app_settings) Deploy the PyWebIO applications from a directory. The server communicates with the browser using0 码力 | 133 页 | 7.44 MB | 1 年前3PyWebIO v1.3.1 Documentation
scope remove(scope) : Remove scope scroll_to(scope) : Scroll the page to the scope Page environment settings Page Title You can call set_env(title=...) to set the page title。 Auto Scroll with use_scope('scope1'): use set_env(output_animation=False) to turn off the animation. To view the effects of environment settings, please visit set_env Demo [http://pywebio- demos.demo.wangweimin.site/set_env_demo] Layout In cdn=True, debug=True, allowed_origins=None, check_origin=None, max_payload_size='200M', **tornado_app_settings) Deploy the PyWebIO applications from a directory. The server communicates with the browser using0 码力 | 133 页 | 7.44 MB | 1 年前3PyWebIO v1.3.3 Documentation
scope remove(scope) : Remove scope scroll_to(scope) : Scroll the page to the scope Page environment settings Page Title You can call set_env(title=...) to set the page title。 Auto Scroll with use_scope('scope1'): use set_env(output_animation=False) to turn off the animation. To view the effects of environment settings, please visit set_env Demo [http://pywebio- demos.demo.wangweimin.site/set_env_demo] Layout In cdn=True, debug=True, allowed_origins=None, check_origin=None, max_payload_size='200M', **tornado_app_settings) Deploy the PyWebIO applications from a directory. The server communicates with the browser using0 码力 | 133 页 | 7.44 MB | 1 年前3PyWebIO v1.3.1 使用手册
debug=True, allowed_origins=None, check_origin=None, max_payload_size=’200M’, **tor- nado_app_settings) 从一个路径中部署 PyWebIO 应用 服务端使用 WebSocket 协议与浏览器进行通讯。 参数 • base (str) –用于加载 PyWebIO 应用的根目录 • port session_expire_seconds=None, ses- sion_cleanup_interval=None, max_payload_size=’200M’, **tornado_app_settings) 从一个路径中部署 PyWebIO 应用 服务端使用 HTTP 协议与浏览器进行通讯。 关于 path_deploy_http() 的 base, port, host, index, allowed_origins=None, check_origin=None, auto_open_webbrowser=False, max_payload_size=’200M’, **tornado_app_settings) 启动一个 Tornado server 将 PyWebIO 应用作为 Web 服务提供。 Tornado server 使用 WebSocket 协议与浏览器进行通讯。 Tornado0 码力 | 111 页 | 1.70 MB | 1 年前3
共 482 条
- 1
- 2
- 3
- 4
- 5
- 6
- 49