- Sort Score
- Result 10 results
- Languages All
Results 921 - 930 of 1,086 for str (0.04 sec)
-
docs/zh/docs/tutorial/request-files.md
### `UploadFile` `UploadFile` 的属性如下: * `filename`:上传文件名字符串(`str`),例如, `myimage.jpg`; * `content_type`:内容类型(MIME 类型 / 媒体类型)字符串(`str`),例如,`image/jpeg`;
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/sub-dependencies.md
async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]): return {"fresh_value": fresh_value} ``` //// //// tab | Python 3.6+ без Annotated /// tip | "Подсказка" Предпочтительнее использовать версию с аннотацией, если это возможно. /// ```Python hl_lines="1" async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.7K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformer.java
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:40:57 UTC 2024 - 8.8K bytes - Viewed (0) -
README.md
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float is_offer: Union[bool, None] = None @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Oct 31 09:13:26 UTC 2024 - 23.6K bytes - Viewed (0) -
statement.go
} // QuoteTo write quoted value to writer func (stmt *Statement) QuoteTo(writer clause.Writer, field interface{}) { write := func(raw bool, str string) { if raw { writer.WriteString(str) } else { stmt.DB.Dialector.QuoteTo(writer, str) } } switch v := field.(type) { case clause.Table: if v.Name == clause.CurrentTable { if stmt.TableExpr != nil { stmt.TableExpr.Build(stmt)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 19.9K bytes - Viewed (0) -
docs/de/docs/tutorial/response-model.md
```Python hl_lines="11 13-14" {!> ../../docs_src/response_model/tutorial004.py!} ``` //// * `description: Union[str, None] = None` (oder `str | None = None` in Python 3.10) hat einen Defaultwert `None`. * `tax: float = 10.5` hat einen Defaultwert `10.5`. * `tags: List[str] = []` hat eine leere Liste als Defaultwert: `[]`. Aber Sie möchten diese vielleicht vom Resultat ausschließen, wenn Sie gar nicht gesetzt wurden.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.8K bytes - Viewed (0) -
docs/sts/web-identity.py
return text % make_authorization_url() def make_authorization_url(): # Generate a random string for the state parameter # Save it for use later to prevent xsrf attacks state = str(uuid4()) params = {"client_id": client_id, "response_type": "code", "state": state, "redirect_uri": callback_uri, "scope": "openid"}
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 28 01:37:51 UTC 2021 - 2.9K bytes - Viewed (0) -
docs/ko/docs/tutorial/path-params-numeric-validations.md
``` /// note | "참고" 경로 매개변수는 경로의 일부여야 하므로 언제나 필수적입니다. 즉, `...`로 선언해서 필수임을 나타내는게 좋습니다. 그럼에도 `None`으로 선언하거나 기본값을 지정할지라도 아무 영향을 끼치지 않으며 언제나 필수입니다. /// ## 필요한 경우 매개변수 정렬하기 `str` 형인 쿼리 매개변수 `q`를 필수로 선언하고 싶다고 해봅시다. 해당 매개변수에 대해 아무런 선언을 할 필요가 없으므로 `Query`를 정말로 써야할 필요는 없습니다. 하지만 `item_id` 경로 매개변수는 여전히 `Path`를 사용해야 합니다. 파이썬은 "기본값"이 없는 값 앞에 "기본값"이 있는 값을 입력하면 불평합니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.5K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/classes-as-dependencies.md
```Python something(some_argument, some_keyword_argument="foo") ``` ⤴️ ⚫️ "🇧🇲". ## 🎓 🔗 👆 5️⃣📆 👀 👈 ✍ 👐 🐍 🎓, 👆 ⚙️ 👈 🎏 ❕. 🖼: ```Python class Cat: def __init__(self, name: str): self.name = name fluffy = Cat(name="Mr Fluffy") ``` 👉 💼, `fluffy` 👐 🎓 `Cat`. & ✍ `fluffy`, 👆 "🤙" `Cat`. , 🐍 🎓 **🇧🇲**. ⤴️, **FastAPI**, 👆 💪 ⚙️ 🐍 🎓 🔗.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.9K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-multiple-params.md
Поскольку по умолчанию, отдельные значения интерпретируются как query-параметры, вам не нужно явно добавлять `Query`, вы можете просто сделать так: ```Python q: Union[str, None] = None ``` Или в Python 3.10 и выше: ```Python q: str | None = None ``` Например: //// tab | Python 3.10+ ```Python hl_lines="27" {!> ../../docs_src/body_multiple_params/tutorial004_an_py310.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.6K bytes - Viewed (0)