Click Documentation Release 4.2.dev0
of subcommands at runtime What does it look like? Here is an example of a simple Click program: import click @click.command() @click.option('--count', default=1, help='Number of greetings.') @click.option('--name' its simplest, just decorating a function with this decorator will make it into a callable script: import click @click.command() def hello(): click.echo('Hello World!') What’s happening is that the decorator that is a perfectly valid name it means that if another piece of code wants to import from that module it will trigger the import a second time under it’s real name and all the sudden your code is imported0 码力 | 101 页 | 407.32 KB | 1 年前3Référence Debian v2.124
Référence Debian 17 / 251 Les répertoires sous « /sys » contiennent des structures de données exportées depuis le noyau, leurs attributs et les liens entre elles. Ils contiennent aussi des interfaces ces variable à « mcedit » en ajoutant les lignes suivantes au fichier « ~/.bashrc » : export EDITOR=mcedit export VISUAL=mcedit Je recommande de les définir à « vim » si possible. Si vous n’êtes pas :/usr/share/doc:~:~/Desktop:~ export CDPATH PATH=”${PATH+$PATH:}/usr/sbin:/sbin” # set PATH so it includes user’s private bin if it exists if [ -d ~/bin ] ; then PATH=”~/bin${PATH+:$PATH}” fi export PATH EDITOR=vim0 码力 | 279 页 | 1.47 MB | 1 年前3Debian GNU/Linux 安装手册 January 8, 2024
priority=medium。 假如您的硬件需要指定内核模块选项才能安装,就要使用“expert”模式启动安装程序。可以通过 expert 命令或者添加 priority=low 引导参数。专家 (export) 模式让您可以完全控制 debian-installer。 鼠标在基于文本的环境下无法使用。以下是对话框中您可以操作的键。在按钮和选项之间可以用 Tab 或 右箭头键“前进”,Shift-Tab RAID0) 和 mirroring (如 RAID1)。它创建输入数据的 n 个拷贝,并将 它们分配到不同的分区,使得相同数据的拷贝不会放在相同的的设备上。默认的 n 值为 2,但可以 在专家模式 (export mode) 下进行设置。分区数至少是 n。RAID10 有不同的分配拷贝布局 (layout)。 默认为 near copies。near copies 有所有磁盘上相同 offset 的所有拷贝。far 使用单独的组件 • RAID5 的配置过程类似于 RAID1,只是您至少需要三个活动分区。 • RAID6 的配置过程类似于 RAID1,只是您至少需要四个活动分区。 • RAID10 除了专家 (export mode) 模式之外也和 RAID1 的设置过程相似。在专家模式下,debian-installer 将询问您布局 (layout)。布局由两部分组成。第一个部分是布局类型。可以是 n (对应0 码力 | 93 页 | 562.93 KB | 1 年前3Flask-RESTful Documentation Release 0.3.10
section. A Minimal API A minimal Flask-RESTful API looks like this: from flask import Flask from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): CRUD resource for a todo application (of course) looks like this: from flask import Flask, request from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) todos = {} class TodoSimple(Resource): "Change my brakepads"} Or from python if you have the requests library installed: >>> from requests import put, get >>> put('http://localhost:5000/todo1', data={'data': 'Remember the milk'}).json() {u'todo1':0 码力 | 42 页 | 84.60 KB | 1 年前3PlantUML 1.2020.22 Guide de référence du langage
PlantUML (1.2020.22) 268 / 294 20.17 Building custom library [!import, !include] 20 PREPROCESSEUR 20.17 Building custom library [!import, !include] It's possible to package a set of included files into imported into your diagram using !import directive. Once the library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This inclure le ficheier qui contient le sprite (ex: !include). Une fois importé, vous pouvez utiliser le sprite normallement en l'appelant de la manière suivante <$nom_du_sprite> 0 码力 | 295 页 | 3.03 MB | 1 年前3PlantUML 1.2020.23 Guide de référence du langage
PlantUML (1.2020.23) 281 / 307 20.17 Building custom library [!import, !include] 20 PREPROCESSEUR 20.17 Building custom library [!import, !include] It's possible to package a set of included files into imported into your diagram using !import directive. Once the library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This inclure le ficheier qui contient le sprite (ex: !include). Une fois importé, vous pouvez utiliser le sprite normallement en l'appelant de la manière suivante <$nom_du_sprite> 0 码力 | 308 页 | 3.12 MB | 1 年前3PlantUML 1.2021.1 Guide de référence du langage
custom library [!import, !include] It’s possible to package a set of included files into a single .zip or .jar archive. This single zip/jar can then be imported into your diagram using !import directive. library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This just adds "customLibrary.zip" in the search path !include myFolder/myFile inclure le ficheier qui contient le sprite (ex: !include). Une fois importé, vous pouvez utiliser le sprite normallement en l’appelant de la manière suivante <$nom_du_sprite> 0 码力 | 385 页 | 4.05 MB | 1 年前3PlantUML 1.2021.2 Guide de référence du langage
custom library [!import, !include] It’s possible to package a set of included files into a single .zip or .jar archive. This single zip/jar can then be imported into your diagram using !import directive. library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This just adds "customLibrary.zip" in the search path !include myFolder/myFile inclure le ficheier qui contient le sprite (ex: !include). Une fois importé, vous pouvez utiliser le sprite normallement en l’appelant de la manière suivante <$nom_du_sprite> 0 码力 | 391 页 | 4.10 MB | 1 年前3PlantUML 1.2021.3 Guide de référence du langage
custom library [!import, !include] It’s possible to package a set of included files into a single .zip or .jar archive. This single zip/jar can then be imported into your diagram using !import directive. library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This just adds "customLibrary.zip" in the search path !include myFolder/myFile inclure le ficheier qui contient le sprite (ex: !include). Une fois importé, vous pouvez utiliser le sprite normallement en l’appelant de la manière suivante <$nom_du_sprite> 0 码力 | 406 页 | 4.24 MB | 1 年前3PlantUML 1.2023.11 Guide de référence du langage
PlantUML (1.2023.11) 490 / 533 25.16 Building custom library [!import, !include] 25 PREPROCESSEUR 25.16 Building custom library [!import, !include] It’s possible to package a set of included files into imported into your diagram using !import directive. Once the library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This note again the use of the prefix MA_. Example of usage: @startuml !include' To import the sprite file you DON'T need to place a prefix! !include MA_FOLDER_MOVE(Red 0 码力 | 534 页 | 7.56 MB | 1 年前3
共 17 条
- 1
- 2