optparse allows users to specify options in the conventional GNU/POSIXsyntax, and additionally generates usage and help messages for you.Here's an example of using optparse in a simple script:
optparse を使うと、GNU/POSIX 構文でオプションを指定できるだけでなく、使用法やヘルプメッセージの生成も行えます。 optparse を使った簡単なスクリプト例を以下に示します: - Python
With these few lines of code, users of your script can now do the``usual thing'' on the command-line, for example:
このようにわずかな行数のコードによって、スクリプトのユーザはコマンドライン上で例えば以下のような 「よくある使い方」 を実行できるようになります: - Python
For example, the if keyword is represented by the tuple (1, 'if'), where 1 is the numeric value associated with all NAME tokens, includingvariable and function names defined by the user. 例えば、ifキーワードはタプル(1, 'if')と表されます。 ここで、1は、ユーザが定義した変数名と関数名を含むすべてのNAMEトークンに対応する数値です。 - Python
When there are two numbers in the first column (for example,"43/3"), then the latter is the number of primitive calls, and the former is the actual number of calls. ("43/3" など)最初の欄に2つの数字が表示されている場合、最初の値は呼出し回数、2番目はプリミティブな呼び出しの回数を表しています。 - Python
For example, if the request is for an image in an HTML document, this should be the request-host of the request for the page containing the image. 例えば、もしリクエストがある HTML ドキュメント内の画像を指していれば、この値は画像を含んでいるページへのリクエストにおけるリクエストホストになるはずです。 - Python
Sometimes, that's not what you want--for example, the --filename option explicitly setsmetavar="FILE", resulting in this automatically-generated optiondescription:
これは時として期待通りの結果になりません -- 例えば、上の例の--filename オプションでは明示的に metavar="FILE" を設定しており、その結果自動生成されたオプション説明テキストは: - Python
It may be necessary to configure and compile Python with certain compiler flags to enable this mode. For example, it is enabled by default with recent versions of Irix, but with Solaris 2.6 and 2.7 you need to do something like: 例えば、ラージファイルのサポートは Irix の最近のバージョンでは標準で有効ですが、Solaris 2.6 および 2.7 では、以下のようにする必要があります: - Python
For example, it might be deemed``safe'' for untrusted code to read any file within a specified directory, but never to write a file. 例えば、信頼されないコードが指定したディレクトリ内の何らかのファイルを読み出すが決して書き込まないということが ``安全''と考えられるかもしれません。 - Python
However, if you reinstall the same major version of Python (perhapswhen upgrading from 2.2 to 2.2.2, for example) site.py will be overwritten by the stock version. しかしながら、(例えば 2.2 から 2.2.2 にアップグレードするときのように)同じメジャーバージョンの Python を再インストールすると、site.py は手持ちのバージョンで上書きされてしまいます。 - Python
This feature can be used to reduce the number of backslashes needed, to split long strings convenientlyacross long lines, or even to add comments to parts of strings, for example: この機能を使うと、長い文字列を分離して、複数行にまたがらせる際に便利です。 また、部分文字列ごとにコメントを追加することもできます。 - Python
maxsplit+1elements). If maxsplit is not specified or is zero, then there is no limit on the number of splits (all possible splits are made).Consecutive delimiters are not grouped together and are deemed to delimit empty strings (for example, "'1,,2'.split(',')"returns "['1', '', '2']"). maxsplit+1 の要素を持ちます)maxsplit が与えられていないかゼロの場合、無制限に分割が行なわれます(全ての可能な分割が行なわれる)。 - Python
This simple example implements a basic read-eval-print loop, similar to (but less useful than) the standard Python interactive interpreterloop. この簡単な例では基本的なread-eval-printループを実装います。 それは標準的なPythonの対話インタープリタループに似ていますが、Pythonのものより便利ではありません。 - Python
As a common example, if the ESC key is to beused to exit the program (as it often is in GL programs), the translationshould specify keyosfCancel instead of keyEscape.
一般的な例としては、(GL プログラムでよくするように)ESC キーを使ってプログラムを終了させる場合には、トランスレーションには Escape でなく osfCancel を指定すべきである。 - XFree86
The filename is interpreted relative to the directory of the file in which the line occurs (for example, if the filename contains no directory or contains a relative directory specification). ファイル名はその行が現れたファイルがあるディレクトリから相対的に解釈される(例えば、ファイル名がディレクトリも相対ディレクトリの指定も含まない場合)。 - XFree86
This function should be called for an internal connection only after an operating systemfacility (for example, select or poll) has indicated that input is available; otherwise, the effect is not defined. この関数はOSの入力監視機能(例えばselectやpoll)によって入力が可能であることが示されるまでは、内部接続に対して呼び出すべきではない。 - XFree86
The polarized light rotators 10a, 10b may include a polarized light rotator in the form of, for example, a half-wavelength plate and 1/4 wavelength plate, or in other forms. 偏光回転体10a,10bは例えば半波長板、1/4波長板、または他の何らかの形態の偏光回転体を含むことができる。 - 特許庁
The packed tea drink can be produced, for example, by adjusting 1,2,4-benzenetriol to less than 10 ppm with activated carbon or PVPP. 該容器詰茶飲料は、例えば、活性炭又はPVPPを用いて1,2,4−ベンゼントリオールを10ppm未満に調整することにより製造することができる。 - 特許庁
For example, when the housing space of the flowing substance housing vessel has a spherical shape, an inside opening of the discharge nozzle is arranged on the equator of the spherical shape. 例えば、流動物収納容器の収納空間が球状をしているときには、その赤道上にノズルの内側開口が設定されている。 - 特許庁
To provide a catalyst material that supports active species densely, thereby having higher catalytic performance and serviceability as, for example, an electrode for fuel cells. 活性種を高密度で担持することで、優れた触媒特性を有し、燃料電池の電極等として実用性のある触媒材料を提供する。 - 特許庁
A second resist layer 32 is formed on the electrode layer 21 and the first resist layer 31 and is exposed by, for example, electron beams. 次に、電極層21および第1のレジスト層31の上に第2のレジスト層32を形成し、第2のレジスト層32を例えば電子線によって露光する。 - 特許庁
This lamellar clay mineral filler is inorganic fine particles, for example, titanium oxide fine particles or the like, and they are intercalated between the layers/lamellar clay mineral composite fillers. この層状粘土鉱物フィラーは、酸化チタン微粒子等の無機微粒子が層間にインターカレートされた無機微粒子/層状粘土鉱物複合フィラーである。 - 特許庁
Furthermore, an inert gas, for example, Ar ions are implanted into the aluminum layer 14 that is formed through sputtering, thus making it amorphous. その後、スパッタ形成したアルミニウム層14に対し不活性ガス例えばArのイオン注入を施すことによってアルミニウム層14を非結晶化させる。 - 特許庁
As a semiconductor light emitting element 12, an element generating light with a wavelength of 1.4 μm, for example, a semiconductor element having a composition of In1-xGaxAsyP1-y is used. 半導体発光素子12として波長1.4μmの光を発生する素子、たとえばIn_1-xGa_xAs_yP_1-yの組成を有する半導体素子を使用する。 - 特許庁
The conveyance surface is formed, for example, by multiple rail-shaped convex parts or multiple polygonal-shaped convex parts formed to be parallel to a conveyance direction. 前記搬送面は、例えば、搬送方向に平行に形成された複数のレール状凸部、又は複数の多角形状凸部により形成される。 - 特許庁
At least two images of the body area are photographed from various camera positions A and a contour line is calculated from these images as contrast, for example. 身体領域の少なくとも2枚の画像を、種々のカメラ位置(A)から撮影し、これらの画像から輪郭線を例えばコントラストとして算出する。 - 特許庁
When the video unit is turned on by an on-screen menu, for example, a power supply button is set selectively to be unlighted or lighted. 例として、オンスクリーンメニューによりビデオ装置が電源オンされているときに、電源ボタンの点灯が、消失又は点灯するように選択的に設定される。 - 特許庁
For example, a region CP2 colored in the presentation original by an operator using a marker pen MK is extracted by comparing two images before and after coloring. たとえば、操作者が発表原稿にマーカーペンMKで着色した領域CP2を、着色前後の2枚の画像を比較することによって抽出する。 - 特許庁
As one example, the voltage control means inverts the direction of the voltage applied between the electrodes at every predetermined timing in detection of the electrical characteristics. 電圧制御手段は、1例としては、電気的特性の検出において、電極間へ印加される電圧の向きを、所定のタイミングごとに逆転させる。 - 特許庁
Both the program modules (the machining program module and the measurement program module) access one and the same data group defined from a geometric model, for example. 両方のプログラムモジュール(機械加工プログラムモジュールと、測定プログラムモジュール)は、例えば幾何学的モデルから定義される一つそして同じデータ群にアクセスする。 - 特許庁
The accumulated fluorescent sheet 24 under exposure to a light is exposed to a radioactive isotope, while applying a perpendicular magnetic field to a sheet surface with, for example, magnets 20, 26. 蓄積性蛍光体シート24の露光中、例えば磁石20、26でシート面に垂直方向の磁場を加えながら、放射性同位体に曝す。 - 特許庁
For example, each menu in a frame V5 displayed for printing is displayed with strike-throughs when printing by the login user is prohibited. たとえば、印刷対象として表示された枠V5内の各メニューは、ログイン中のユーザが印刷を禁止されている場合には、取消線を付されて、表示される。 - 特許庁
The voltage source has a battery 7 (for example, an on-vehicle battery), a DC circular pressure converter 8 downstream therefrom and a capacitor 9 serving as a buffer capacitor. 電圧源は、バッテリー7(例えば、車両搭載バッテリー)、その下流のDC円圧変換器8およびバッファキャパシタとして役立つキャパシタ9を有している。 - 特許庁
An eigenvalue calculation part 801 of a server E01 calculates a peculiar value (for example, a hash value) of image data to be displayed on a display 410 of a client E02. サーバE01の固有値算出部801は、クライアントE02のディスプレイ410に表示させる画像データの固有値(例えばハッシュ値)を算出する。 - 特許庁
Such a change of the identification level can be performed for each account and setting of limiting the setting range of the identification level is performed by a client as a unit, for example. このような識別レベルの変更を口座毎に行えるようにし、例えば顧客単位に前記識別レベルの設定範囲を限定する設定をする。 - 特許庁
At least end surfaces 19 of the cradle members 3 operationally contacting with the cone/disk have an edge layer 19a containing nitrogen, for example, a carbonitriding layer. 円錐円板と作用接触するクレードル部材3の少なくとも端面19が、窒素を含有する縁部層19a例えば浸炭窒化層を備えている。 - 特許庁
Video data (CM video data) for display a commercial message picture is stored, for example, in part of angle area of a multi-angle area in a DVD. DVDには、例えばマルチアングル領域の一部のアングルの領域に、コマーシャル画像を表示するためのビデオデータ(CMビデオデータ)が記憶されている。 - 特許庁
To provide a waveform measuring apparatus having improved observation property of an analysis value (for example, bus value) of a signal to be measured even if jitter or the like exists. ジッタ等が存在しても被測定対象の信号の解析値(例えば、バス値)の観測性を向上した波形測定装置を実現することにある。 - 特許庁
For example, a display element 121B has 650 horizontal pixels and 220 vertical pixels, and 4:3.16 physical longitudinal/lateral size ratio. 例えば、表示素子121Bは、水平方向画素数が650、垂直方向画素数が220であり、その物理的な寸法縦横比は4:3.16である。 - 特許庁
A preferred example of the structural unit (b3-2) is derived from a monomer that generates a carboxyl group by an action of an acid and includes a lactone ring. 構造単位(b3−2)の好ましい例は、酸の作用によりカルボキシ基を生じ且つラクトン環を有するモノマーに由来する構造単位である。 - 特許庁
To provide a reproduction device for displaying and setting, in a visually understandable manner, combination conditions, for example, for simultaneously reproducing music and images. 例えば音楽や画像を同時再生する際の組合せ条件を視覚的に分かり易く表示および設定することを可能とした再生装置を提供する。 - 特許庁
An animation cel 9 is provided on a game board 12, and for example a flexible substrate 8 on which a wiring pattern is formed is provided thereon. 遊技盤12の上にはセル画9が設けられていて、更にその上には配線パターンが形成された、例えばフレキシブル基板8が設けられている。 - 特許庁
To provide a technology for easily positioning a bridge girder and a pier or an abutment when erecting the bridge girder by using, for example, a floating crane. 例えばフローティングクレーンを用いて橋桁を架設する場合に、橋桁と橋脚又は橋台との位置合わせを容易にした技術を提供する。 - 特許庁
For example, a polyacrylonitrile resin film is used as the organic resin film and silicone treatment for coating the surface layer of the film, that is, water repelling treatment is applied to the film. 例えば、有機樹脂フィルムとしてポリアクリロニトリル系樹脂を用い、その表層にテトラメチルジシロキサンを被覆するシリコーン処理すなわち撥水化処理を行う。 - 特許庁
In this example, the heat in between the loaded copied objects after the fixation process remains for a comparatively long time, then, a low duty ratio is selected in order to prevent overheating. 本例の場合、定着後のコピー積載物内部の熱の滞留が比較的多くなるので、過熱を防止するため、低いデューティ比が選択されている。 - 特許庁
An example of DCB includes a counter 312 for counting the number of medium loading times, medium formatting control information 314-320 and information such as output calibration information. DCBの一例は、媒体ロード回数をカウントするカウンタ(312)、媒体フォーマットのための制御情報(314〜320)、及び出力較正情報等の情報を含む。 - 特許庁
For example, a user selects Area1 to designate the Area1 as the transfer destination of the program selected from the list of programs whose recording reservation is set. ユーザは、例えば、Area1を選択することによって、録画予約が設定された番組のリストから選択した番組の転送先としてArea1を指定することができる。 - 特許庁
The size of the cursor is changed and, for example, a change form in pulling of a three-dimensional model is changed in accordance with its changed size. カーソルの大きさを変更し、その変更した大きさに応じて例えば3次元モデルの引っ張りにおける変形態様を変更する構成とする。 - 特許庁
To easily carry out processing such as contour control by applying an image processor to a data compression device and an image recognizing device, for example. 画像処理装置に関し、例えばデータ圧縮装置、画像認識装置に適用して、輪郭制御等の処理を簡易に実行できるようにする。 - 特許庁
For example, in case when the metal electrode is approx. 500-700 nm in thickness and a distance between the electrodes is approx. 600 nm, an O_3TEOS film is stacked at 300 nm. 例えばメタル電極が500nm〜700nm程度の厚さで電極間が600nm程度ある場合、O_3TEOS膜を300nm堆積する。 - 特許庁
A selector 4 selects the clock signal CLK2 except for the clock signal (CLK1, for example) having an edge in the transition period that the transition period signal Mask shows. セレクタ4は、前記遷移期間信号Maskが示す遷移期間内にエッジを持つクロック信号(例えばCLK1)以外のクロック信号CLK2を選択する。 - 特許庁
Copyright 2001-2004 Python Software Foundation.All rights reserved. Copyright 2000 BeOpen.com.All rights reserved. Copyright 1995-2000 Corporation for National Research Initiatives.All rights reserved. Copyright 1991-1995 Stichting Mathematisch Centrum.All rights reserved.