uv add --dev ruff ty
Add dependencies to the project.
Dependencies are added to the project's pyproject.toml file.
If a given dependency exists already, it will be updated to the new version specifier unless it includes markers that differ from the existing specifier in which case another entry for the dependency will be added.
The lockfile and project environment will be updated to reflect the added
dependencies. To skip updating the lockfile, use --frozen. To skip updating the
Pythonのforループの使い方: 基本的な使い方
- リストをループ
- インデックスと値の両方を取得(enumerate) fruits = ['apple', 'banana', 'orange']for index, fruit in enumerate(fruits): print(f"{index}: {fruit}")# 出力:# 0: apple# 1: banana# 2: orange
- 辞書をループ
キーをループdata = {'name': 'John', 'age': 30}for key in data: print(key)# キーと値をループfor key, value in data.items(): print(f"{key}: {value}")# 値だけをループfor value in data.values(): print(value)
- 範囲をループ(range)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://chatgpt.com/share/6963e258-0548-8013-976b-97257b866878 |
curl https://mise.run | sh
npm install -g grok-cli
‘‘‘ sudo apt update sudo apt install libsecret-1-0 libsecret-1-dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mcpServers": { | |
| "sqlite": { | |
| "command": "uvx", | |
| "args": [ | |
| "mcp-server-sqlite", | |
| "--db-path", | |
| "C:\\Users\\ykomi\\cur\\AI\\MCP\\test.db" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mcpServers": { | |
| "sqlite": { | |
| "command": "uvx", | |
| "args": [ | |
| "mcp-server-sqlite", | |
| "--db-path", | |
| "C:\\Users\\ykomi\\cur\\AI\\MCP\\test.db" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 今の日本の、主要な都市の降水量 | |
| ========== | |
| 2024年11月現在、日本の主要都市の降水量について以下の情報があります: | |
| - **東京**の11月の平均降水量は約83.5mmです。 | |
| - **大阪**は76.4mmと比較的少ない量です。 | |
| - **札幌**では71.5mmの降水量が観測され、他の主要都市に比べるとやや多めです。 | |
| これらの数値は、各都市の11月の平均降雨量を示しており、通常の降水量の範囲内です ([アメダス実況(降水量) - 日本気象協会 tenki.jp](https://tenki.jp/amedas/precip.html)) ([過去の天気(アメダス・降水量) - 日本気象協会 tenki.jp](https://tenki.jp/past/amedas/precip/)) ([日本の気候、月別の気象、平均気温 - Weather Spark](https://ja.weatherspark.com/countries/JP))。 | |
| ========== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 「キャンプを楽しむコツ」についての300ワード程度の英文を作ってください。日本語訳もつけて下さい。最後にその中に含まれるCEFRA2レベル以上の単語のリストを、英語・日本語・発音記号の3列で、表形式で作成してください。 |
NewerOlder