Results of 1 - 10 of about 15 for FileInput (0.007 sec.)
- fileinput --- 複数の入力ストリームをまたいだ行を反復する 15169
- fileinput --- 複数の入力ストリームをまたいだ行を反復する ソースコード: Lib/fileinput.py このモジュールは標準入力やファイルの並びにまたがるループを素早く書くためのヘルパークラスと関数を提供しています。単一のファイルを読み書きしたいだけなら、
...open() を参照してください。 典型的な使い方は以下の通りです: import fileinput for line in fileinput . input ( encoding = "utf-8" ): process ( line ) このスクリプトは sys.argv[1:] に列挙されている全ての...ます。 ファイル名が 1 つでも受け付けます。 全てのファイルはデフォルトでテキストモードでオープンされます。しかし、 input() や FileInput をコールする際に mode パラメータを指定すれば、これをオーバーライドすることができます。オープン中あるいは読み込み中にI/Oエラ...行は、各種改行文字まで含めて返されます。ファイルの最後が改行文字で終っていない場合には、改行文字で終わらない行が返されます。 fileinput.input() または FileInput() の openhook パラメータにオープン時のフックを渡すと、ファイルの開き方を制御できます。 フックは f... - https://man.mtool.work/python/3.14/library/fileinput.html
- モジュールのコマンドラインインターフェース (CLI) 8742
- モジュールのコマンドラインインターフェース (CLI) 以下のモジュールにはコマンドラインインターフェースがあります。 ast asyncio base64 calendar code compileall cProfile : see profile dis doctest encodings.rot_13 ensurepip filecmp fileinput ftpl
... - https://man.mtool.work/python/3.14/library/cmdline.html
- コマンドラインインターフェースライブラリ 8568
- コマンドラインインターフェースライブラリ この章で説明されているモジュールは、アプリケーション向けのコマンドラインやターミナルインターフェースの実装を支援します。 概要は以下のとおりです: argparse --- コマンドラインオプションや引数、サブコマン
...ド向けのパーサー optparse --- コマンドラインオプションのパーサー getpass --- 可搬性のあるパスワード入力機構 fileinput --- 複数の入力ストリームをまたいだ行を反復する curses --- 文字セル表示のターミナル処理 curses.textpad --- curses プログラム... - https://man.mtool.work/python/3.14/library/cmdlinelibs.html
- What's New In Python 3.10 8359
- What's New In Python 3.10 編集者 : Pablo Galindo Salgado この記事では Python 3.9 と比較した Python 3.10 の新機能を解説します。Python 3.10 は2021年10月4日にリリースされました。全詳細については 変更履歴 をご覧ください。 概要 -- リリースハイラ
...man in bpo-40066 .) Add enum.StrEnum for enums where all members are strings. (Contributed by Ethan Furman in bpo-41816 .) fileinput fileinput.input() と fileinput.FileInput に encoding パラメータと errors パラメータを追加しました。 (Inada Naoki による貢献...、 bpo-43712 。) mode が "r" でファイルが圧縮されている場合、 fileinput.hook_compressed() は非圧縮ファイルの場合と同様に TextIOWrapper オブジェクトを返すようになりました。 (Inada Naoki による貢献... - https://man.mtool.work/python/3.14/whatsnew/3.10.html
- What's New In Python 3.8 8359
- What's New In Python 3.8 編集者 : Raymond Hettinger この記事では Python 3.7 と比較した Python 3.8 の新機能を解説します。 Python 3.8 は 2019 年 10 月 14 日にリリースされました。 詳しくは 変更履歴 を参照してください。 概要 -- リリースハイライ
...されます。 (Contributed by Elvis Pranskevichus in bpo-34075 .) xml.dom.pulldom.DOMEventStream 、 wsgiref.util.FileWrapper 、 fileinput.FileInput の __getitem__() メソッドが非推奨になりました。 これらのメソッドの実装は index パラメータを無視し、代わりに次の要...ジュールの Cache と Statement オブジェクトはユーザーに公開されなくなりました。 (Contributed by Aviv Palivoda in bpo-30262 .) fileinput.input() と fileinput.FileInput() の bufsize キーワード引数が削除されました。 Python 3.6 から無視され、非推奨になっていまし... - https://man.mtool.work/python/3.14/whatsnew/3.8.html
- What's New In Python 3.11 8255
- What's New In Python 3.11 編集者 : Pablo Galindo Salgado この記事では Python 3.10 と比較した Python 3.11 の新機能を解説します。Python 3.11 は2022年10月24日にリリースされました。全詳細については 変更履歴 をご覧ください。 概要 -- リリースハイ
...による bpo-45124 での貢献。) Python 3.9 から非推奨となっていた xml.dom.pulldom.DOMEventStream 、 wsgiref.util.FileWrapper 、 fileinput.FileInput の __getitem__() メソッドが削除されました。 (Hugo van Kemenade による bpo-45132 での貢献。) gettext の非推奨関数...能性のあるものをまとめています。 C API の移植に関する注意点は 別にまとめています 。 open() 、 io.open() 、 codecs.open() 、 fileinput.FileInput のファイルモードに 'U' (「ユニバーサル改行」) を指定できなくなりました。 Python 3 ではテキストモードでファイルを... - https://man.mtool.work/python/3.14/whatsnew/3.11.html
- Pythonモジュール索引 8202
- Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i
.... f faulthandler Dump the Python traceback. fcntl The fcntl() and ioctl() system calls. filecmp Compare files efficiently. fileinput Loop over standard input or a list of files. fnmatch Unix shell style filename pattern matching. fractions Rational number... - https://man.mtool.work/python/3.14/py-modindex.html
- Python ドキュメントの目次 8150
- Python ドキュメントの目次 What's New in Python What's new in Python 3.14 概要 -- リリースハイライト 新しい機能 PEP 649 と PEP 749 : アノテーションの遅延評価 PEP 734 : 複数インタープリタ機能が標準ライブラリに追加 PEP 750 : テンプレート文字列
...collections.abc contextlib curses データクラス __slots__ キーワード専用フィールド distutils doctest エンコーディング enum fileinput faulthandler gc glob hashlib hmac IDLE と idelelib importlib.metadata inspect itertools linecache os os.path pathlib platf...nascii cmath collections concurrent.futures contextlib datetime decimal distutils email エンコーディング enum faulthandler fileinput hashlib http.client idlelib と IDLE importlib inspect json logging math multiprocessing os pathlib pdb pickle pickletools...クの例6: 可変個の引数 optparse の拡張 新しい型の追加 新しいアクションの追加 例外 getpass --- 可搬性のあるパスワード入力機構 fileinput --- 複数の入力ストリームをまたいだ行を反復する curses --- 文字セル表示のターミナル処理 関数 ウィンドウオブジェクト 定数 cu... - https://man.mtool.work/python/3.14/contents.html
- Python 標準ライブラリ 8150
- Python 標準ライブラリ このライブラリリファレンスマニュアルは、Python に付属する標準ライブラリについて説明します。 Python の配布物に含まれることが多い、オプションのコンポーネントの一部も説明します。 別の文書である Python 言語リファレンス では
...引数、サブコマンド向けのパーサー optparse --- コマンドラインオプションのパーサー getpass --- 可搬性のあるパスワード入力機構 fileinput --- 複数の入力ストリームをまたいだ行を反復する curses --- 文字セル表示のターミナル処理 curses.textpad --- curses プログラム... - https://man.mtool.work/python/3.14/library/
- What's New In Python 3.6 8150
- What's New In Python 3.6 エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yury Selivanov < yury @ magic . io > この記事では 3.5 と比較した Python 3.6 の新機能を解説します。 Python 3.6 は2016年12月23日にリリースされました。 全詳細につい
...インストールするようになりました。 faulthandler.enable() を参照してください。 (Contributed by Victor Stinner in bpo-23848 .) fileinput hook_encoded() が errors 引数に対応しました。 (Contributed by Joseph Hackman in bpo-25788 .) hashlib hashlib が OpenSSL 1....書化された API と一致するように __all__ 属性に不足していた API が追加されました: calendar , cgi , csv , ElementTree , enum , fileinput , ftplib , logging , mailbox , mimetypes , optparse , plistlib , smtpd , subprocess , tarfile , threading , wave 。 これに... - https://man.mtool.work/python/3.14/whatsnew/3.6.html