- Sort Score
- Num 10 results
- Language All
Results 7351 - 7360 of 7,804 for RETURN (0.08 seconds)
-
docs/en/docs/deployment/docker.md
* Create a `main.py` file with: ```Python from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: str | None = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile { #dockerfile } Now in the same project directory create a file `Dockerfile` with:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 28.3K bytes - Click Count (1) -
Vagrantfile
retry_installcommand() { n=0 while true; do #{install_command} $1 && break let n=n+1 if [ $n -ge $2 ]; then echo "==> Exhausted retries to install $1" return 1 fi echo "==> Retrying installing $1, attempt $((n+1))" # Add a small delay to increase chance of metalink providing updated list of mirrors sleep 5 done }
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Feb 17 17:41:23 GMT 2021 - 14.9K bytes - Click Count (0) -
README.md
public ExtractData getText(final InputStream inputStream, final Map<String, String> params) { // Custom extraction logic ExtractData extractData = new ExtractData(); // ... implementation return extractData; } } // Register custom extractor container.singleton("customExtractor", CustomExtractor.class); container.singleton("extractorFactory", ExtractorFactory.class, factory -> {
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Aug 31 05:32:52 GMT 2025 - 15.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
// Then verify(nextMessage).setTreeId(Smb2Constants.UNSPECIFIED_TREEID); assertTrue(result); // Assuming superclass chain returns true } @Test @DisplayName("Should always return 0 for readBytesWireFormat") void testReadBytesWireFormat() { // Given byte[] buffer = createTestData(256); // When int bytesRead = request.readBytesWireFormat(buffer, 0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.6K bytes - Click Count (0) -
docs/ko/docs/tutorial/first-steps.md
{* ../../docs_src/first_steps/tutorial003_py310.py hl[7] *} /// note | 참고 차이점을 모르겠다면 [Async: *"바쁘신 경우"*](../async.md#in-a-hurry)를 확인하세요. /// ### 5 단계: 콘텐츠 반환 { #step-5-return-the-content } {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *} `dict`, `list`, 단일값을 가진 `str`, `int` 등을 반환할 수 있습니다. Pydantic 모델을 반환할 수도 있습니다(나중에 더 자세히 살펴봅니다).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 15K bytes - Click Count (0) -
src/archive/zip/writer_test.go
}) } func writeTestsToFS(tests []WriteTest) fs.FS { fsys := fstest.MapFS{} for _, wt := range tests { fsys[wt.Name] = &fstest.MapFile{ Data: wt.Data, Mode: wt.Mode, } } return fsys } func TestWriterAddFS(t *testing.T) { buf := new(bytes.Buffer) w := NewWriter(buf) tests := []WriteTest{ {Name: "emptyfolder", Mode: 0o755 | os.ModeDir},
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Jan 28 04:20:09 GMT 2025 - 14.4K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/path-params.md
{* ../../docs_src/path_params/tutorial005_py310.py hl[20] *} /// tip 你也可以用 `ModelName.lenet.value` 取得值 `"lenet"`。 /// #### 回傳「列舉成員」 { #return-enumeration-members } 你可以從「路徑操作」回傳「列舉成員」,即使是巢狀在 JSON 主體(例如 `dict`)裡。 在回傳給用戶端之前,它們會被轉成對應的值(此例為字串): {* ../../docs_src/path_params/tutorial005_py310.py hl[18,21,23] *} 你的用戶端會收到像這樣的 JSON 回應:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 8.4K bytes - Click Count (0) -
docs/tr/docs/tutorial/first-steps.md
/// note | Not Eğer farkı bilmiyorsanız, [Async: *"Aceleniz mi var?"*](../async.md#in-a-hurry) sayfasına bakın. /// ### Adım 5: içeriği döndürün { #step-5-return-the-content } {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *} Bir `dict`, `list`, `str`, `int` vb. tekil değerler döndürebilirsiniz.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 14.4K bytes - Click Count (0) -
docs/zh/docs/features.md
编写带有类型标注的标准 Python: ```Python from datetime import date from pydantic import BaseModel # 将变量声明为 str # 并在函数内获得编辑器支持 def main(user_id: str): return user_id # 一个 Pydantic 模型 class User(BaseModel): id: int name: str joined: date ``` 可以像这样来使用: ```Python my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 8.7K bytes - Click Count (0) -
docs/ru/docs/tutorial/first-steps.md
/// note | Примечание Если вы не знаете, в чём разница, посмотрите [Асинхронность: *"Нет времени?"*](../async.md#in-a-hurry). /// ### Шаг 5: верните содержимое { #step-5-return-the-content } {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *} Вы можете вернуть `dict`, `list`, отдельные значения `str`, `int` и т.д. Также можно вернуть модели Pydantic (подробнее об этом позже).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 18.7K bytes - Click Count (0)