Results of 1 - 10 of about 66 for cursor (0.011 sec.)
- sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース — Python 3.14.8... 12200
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース テーマ 自動 ライト ダーク | sqlite3 --- SQLite デー
...は、あなたは基本的な sqlite3 機能を使用して、 例としてモンティ・パイソンの映画のデータベースを作成します。 あなたがカーソル( cursors )やトランザクション( transactions )を含むデータベースの基本概念を理解していることを前提としています。 最初に、新しいデータ...への接続を表します。 SQL 文を実行し、SQL クエリから結果を取得するには、データベース・カーソルを使用する必要があります。 con.cursor() を呼び出して Cursor を作成してください: cur = con . cursor () さて、今やデータベース接続とカーソルを取得したので、タイト...に書き込まれたことを確認します: >>> con . close () >>> new_con = sqlite3 . connect ( "tutorial.db" ) >>> new_cur = new_con . cursor () >>> res = new_cur . execute ( "SELECT title, year FROM movie ORDER BY score DESC" ) >>> title , year = res . fetchone (... - https://man.mtool.work/python/3.14/library/sqlite3.html
- sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース — Python 3.14.8... 12200
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース テーマ 自動 ライト ダーク | sqlite3 --- SQLite デー
...は、あなたは基本的な sqlite3 機能を使用して、 例としてモンティ・パイソンの映画のデータベースを作成します。 あなたがカーソル( cursors )やトランザクション( transactions )を含むデータベースの基本概念を理解していることを前提としています。 最初に、新しいデータ...への接続を表します。 SQL 文を実行し、SQL クエリから結果を取得するには、データベース・カーソルを使用する必要があります。 con.cursor() を呼び出して Cursor を作成してください: cur = con . cursor () さて、今やデータベース接続とカーソルを取得したので、タイト...に書き込まれたことを確認します: >>> con . close () >>> new_con = sqlite3 . connect ( "tutorial.db" ) >>> new_cur = new_con . cursor () >>> res = new_cur . execute ( "SELECT title, year FROM movie ORDER BY score DESC" ) >>> title , year = res . fetchone (... - https://man.mtool.work/python/3.14/library/sqlite3.html
- asyncio での開発 — Python 3.14.8 ドキュメント 9960
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio での開発 テーマ 自動 ライト ダーク | asyncio での開発 ¶ 非同期プ
...the finalization of an asynchronous generator can occur in an unexpected order: import asyncio work_done = False async def cursor (): try : yield 1 finally : assert work_done async def rows (): global work_done try : yield 2 finally : await asyncio . s...leep ( 0.1 ) # imitate some async work work_done = True async def main (): async for c in cursor (): async for r in rows (): break break asyncio . run ( main ()) For this example, we get the following output: unhandled...thout __name__ > () > exception = AssertionError () > Traceback ( most recent call last ): File "example.py" , line 6 , in cursor yield 1 asyncio . exceptions . CancelledError During handling of the above exception , another exception occurred : Traceb... - https://man.mtool.work/python/3.14/library/asyncio-dev.html
- asyncio での開発 — Python 3.14.8 ドキュメント 9960
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio での開発 テーマ 自動 ライト ダーク | asyncio での開発 ¶ 非同期プ
...the finalization of an asynchronous generator can occur in an unexpected order: import asyncio work_done = False async def cursor (): try : yield 1 finally : assert work_done async def rows (): global work_done try : yield 2 finally : await asyncio . s...leep ( 0.1 ) # imitate some async work work_done = True async def main (): async for c in cursor (): async for r in rows (): break break asyncio . run ( main ()) For this example, we get the following output: unhandled...thout __name__ > () > exception = AssertionError () > Traceback ( most recent call last ): File "example.py" , line 6 , in cursor yield 1 asyncio . exceptions . CancelledError During handling of the above exception , another exception occurred : Traceb... - https://man.mtool.work/python/3.14/library/asyncio-dev.html
- What's New in Python 2.5 — Python 3.14.8 ドキュメント 9318
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.5 テーマ 自動 ライト ダーク | What's New in Python 2.5 ¶ 著者 : A.M. Kuchling This article explains the new feature
...、そのオブジェクトのユーザがこのように書けるようになることです: db_connection = DatabaseConnection () with db_connection as cursor : cursor . execute ( 'insert into ...' ) cursor . execute ( 'delete from ...' ) # ... more operations ... The transaction...n. Here's the basic interface for DatabaseConnection that I'll assume: class DatabaseConnection : # Database interface def cursor ( self ): "Returns a cursor object and starts a new transaction" def commit ( self ): "Commits current transaction" def ro...saction" The __enter__() method is pretty easy, having only to start a new transaction. For this application the resulting cursor object would be a useful result, so the method will return it. The user can then add as cursor to their ' with ' statement... - https://man.mtool.work/python/3.14/whatsnew/2.5.html
- What's New in Python 2.5 — Python 3.14.8 ドキュメント 9318
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.5 テーマ 自動 ライト ダーク | What's New in Python 2.5 ¶ 著者 : A.M. Kuchling This article explains the new feature
...、そのオブジェクトのユーザがこのように書けるようになることです: db_connection = DatabaseConnection () with db_connection as cursor : cursor . execute ( 'insert into ...' ) cursor . execute ( 'delete from ...' ) # ... more operations ... The transaction...n. Here's the basic interface for DatabaseConnection that I'll assume: class DatabaseConnection : # Database interface def cursor ( self ): "Returns a cursor object and starts a new transaction" def commit ( self ): "Commits current transaction" def ro...saction" The __enter__() method is pretty easy, having only to start a new transaction. For this application the resulting cursor object would be a useful result, so the method will return it. The user can then add as cursor to their ' with ' statement... - https://man.mtool.work/python/3.14/whatsnew/2.5.html
- IDLE --- Python のエディタとシェル — Python 3.14.8 ドキュメント 9004
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » IDLE --- Python のエディタとシェル テーマ 自動 ライト ダーク | IDLE --- Python のエディタとシェ
...い出力ウィンドウに出力します。 Replace... [置換...] 検索と置換ダイアログを開きます。 Go to Line [指定行へジャンプ] Move the cursor to the beginning of the line requested and make that line visible. A request past the end of the file goes to the end. Cle...ィンドウ、Editor ウィンドウ) ¶ Format Paragraph [パラグラフのフォーマット] Rewrap the text block containing the text insert cursor. Avoid code lines. See Format block in the Editing and Navigation section below. Indent Region [領域をインデント] 選択され...e Shell window also has an output squeezing facility explained in the Python Shell window subsection below. Squeeze If the cursor is over an output line, squeeze all the output between the code above and the prompt below down to a 'Squeezed text' label... - https://man.mtool.work/python/3.14/library/idle.html
- IDLE --- Python のエディタとシェル — Python 3.14.8 ドキュメント 9004
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » IDLE --- Python のエディタとシェル テーマ 自動 ライト ダーク | IDLE --- Python のエディタとシェ
...い出力ウィンドウに出力します。 Replace... [置換...] 検索と置換ダイアログを開きます。 Go to Line [指定行へジャンプ] Move the cursor to the beginning of the line requested and make that line visible. A request past the end of the file goes to the end. Cle...ィンドウ、Editor ウィンドウ) ¶ Format Paragraph [パラグラフのフォーマット] Rewrap the text block containing the text insert cursor. Avoid code lines. See Format block in the Editing and Navigation section below. Indent Region [領域をインデント] 選択され...e Shell window also has an output squeezing facility explained in the Python Shell window subsection below. Squeeze If the cursor is over an output line, squeeze all the output between the code above and the prompt below down to a 'Squeezed text' label... - https://man.mtool.work/python/3.14/library/idle.html
- curses --- 文字セル表示のターミナル処理 — Python 3.14.8 ドキュメント 8790
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » curses --- 文字セル表示のターミナル処理 テーマ 自動 ライト ダーク | curses --- 文字セル表
..., cup , cud , cud1 , cuu1 , cuu , vpa are disabled; and the home string is set to the value of cr . The effect is that the cursor is confined to the current line, and so are screen updates. This may be used for enabling character-at-a-time line editing...ape character, to distinguish between an individual escape character entered on the keyboard from escape sequences sent by cursor and function keys. Added in version 3.9. curses. get_tabsize ( ) ¶ Retrieves the value set by set_tabsize() . Added in ver...) window. chgat ( y , x , attr ) window. chgat ( y , x , num , attr ) Set the attributes of num characters at the current cursor position, or at position (y, x) if supplied. If num is not given or is -1 , the attribute will be set on all the character... - https://man.mtool.work/python/3.14/library/curses.html
- curses --- 文字セル表示のターミナル処理 — Python 3.14.8 ドキュメント 8790
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » curses --- 文字セル表示のターミナル処理 テーマ 自動 ライト ダーク | curses --- 文字セル表
..., cup , cud , cud1 , cuu1 , cuu , vpa are disabled; and the home string is set to the value of cr . The effect is that the cursor is confined to the current line, and so are screen updates. This may be used for enabling character-at-a-time line editing...ape character, to distinguish between an individual escape character entered on the keyboard from escape sequences sent by cursor and function keys. Added in version 3.9. curses. get_tabsize ( ) ¶ Retrieves the value set by set_tabsize() . Added in ver...) window. chgat ( y , x , attr ) window. chgat ( y , x , num , attr ) Set the attributes of num characters at the current cursor position, or at position (y, x) if supplied. If num is not given or is -1 , the attribute will be set on all the character... - https://man.mtool.work/python/3.14/library/curses.html