Python 3.6.5 ドキュメント 検索
Results of 1 - 10 of about 51 for bar (0.006 sec.)
- 16.4. argparse --- コマンドラインオプション、引数、サブコマンドのパーサー — Pyt... 16530
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
..., help = 'foo help' ) >>> parser . add_argument ( 'bar' , nargs = '+' , help = 'bar help' ) >>> parser ....print_help () usage: PROG [-h] [--foo [FOO]] bar [bar ...] positional arguments: bar bar help optio..., help = 'foo help' ) >>> parser . add_argument ( 'bar' , nargs = '+' , help = 'bar help' ) >>> parser ....elp () usage: PROG [options] positional arguments: bar bar help optional arguments: -h, --help show this... - https://man.plustar.jp/python/library/argparse.html - [similar]
- 26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 10056
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...... response = self . backend . get_endpoint ( 'foobar' ) . create_call ( 'spam' , 'eggs' ) . start_call...ができます: >>> chained = call . get_endpoint ( 'foobar' ) . create_call ( 'spam' , 'eggs' ) . start_call...bjects are used. >>> mock = Mock () >>> mock . foo_bar . return_value = None >>> mock . foo_bar ( 'baz' ,...spam = 'eggs' ) >>> mock . foo_bar . assert_called_with ( 'baz' , spam = 'eggs' ) If... - https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
- 11.1. pathlib --- オブジェクト指向のファイルシステムパス — Python 3.6.5 ドキュ... 9157
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...ジェクトです。 >>> PurePath ( 'foo' , 'some/path' , 'bar' ) PurePosixPath('foo/some/path/bar') >>> PurePath...( Path ( 'foo' ), Path ( 'bar' )) PurePosixPath('foo/bar') pathsegments が空のと...sr/lib64') >>> PureWindowsPath ( 'c:/Windows' , 'd:bar' ) PureWindowsPath('d:bar') ただし、Windows のパス...意味するため受け付けれられます: >>> PurePath ( 'foo//bar' ) PurePosixPath('foo/bar') >>> PurePath ( 'foo/./... - https://man.plustar.jp/python/library/pathlib.html - [similar]
- 7. 使用例 — Python 3.6.5 ドキュメント 8767
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python モジュールの
...モジュールを指定できます。例えば、モジュール foo と bar を配布しようとしているのなら、 setup スクリプトは以...下のようになります: < root >/ setup . py foo . py bar . py また、セットアップスクリプトは以下のようになり...rom distutils.core import setup setup ( name = 'foobar' , version = '1.0' , py_modules = [ 'foo' , 'bar'...rom distutils.core import setup setup ( name = 'foobar' , version = '1.0' , packages = [ '' ], ) のように... - https://man.plustar.jp/python/distutils/examples.html - [similar]
- 5. インポートシステム — Python 3.6.5 ドキュメント 8767
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ
...ポート検索の様々なフェーズで使われ、これは例えば foo.bar.baz のようなドットで区切られたサブモジュールへのパ...します。この場合、 Python は最初に foo を、次に foo.bar 、そして最後に foo.bar.baz をインポートしようとしま...べてのモジュールのキャッシュを提供します。なので foo.bar.baz がインポート済みの場合、 sys.modules は foo 、...foo.bar 、 foo.bar.baz のエントリーを含みます。それぞれのキ... - https://man.plustar.jp/python/reference/import.html - [similar]
- 29.13. site --- サイト固有の設定フック — Python 3.6.5 ドキュメント 8707
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...kages があり、その中に三つのサブディレクトリ foo , bar および spam と二つのパス設定ファイル foo.pth と ba...と想定してください: # foo package configuration foo bar bletch また、 bar.pth には: # bar package configur...ation bar が記載されているとします。そのとき、次のバージョン...追加されます: /usr/local/lib/pythonX.Y/site-packages/bar /usr/local/lib/pythonX.Y/site-packages/foo bletch... - https://man.plustar.jp/python/library/site.html - [similar]
- 16.16. ctypes --- Pythonのための外部関数ライブラリ — Python 3.6.5 ドキュメント 8377
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...ctypes は c_int の配列を受け取ります。: >>> class Bar ( Structure ): ... _fields_ = [( "count" , c_int )..., ( "values" , POINTER ( c_int ))] ... >>> bar = Bar () >>> bar . values = ( c_int * 3 )( 1 , 2 ,...3 ) >>> bar . count = 3 >>> for i in range ( bar . count ): ...... print ( bar . values [ i ]) ... 1 2 3 >>> それに加えて、 argty... - https://man.plustar.jp/python/library/ctypes.html - [similar]
- プログラミング FAQ — Python 3.6.5 ドキュメント 8317
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問
...驚くかもしれません。 このコード: >>> x = 10 >>> def bar (): ... print ( x ) >>> bar () 10 は動きますが、こ...のスコープにアクセスできます: >>> x = 10 >>> def foobar (): ... global x ... print ( x ) ... x += 1 >>> fo...obar () 10 この明示的な宣言は (表面的には似ているクラス...ことでもできます: >>> def foo (): ... x = 10 ... def bar (): ... nonlocal x ... print ( x ) ... x += 1 ...... - https://man.plustar.jp/python/faq/programming.html - [similar]
- 26.8. test --- Python 用回帰テストパッケージ — Python 3.6.5 ドキュメント 8183
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...str ( w . args [ 0 ]) == "foo" warnings . warn ( "bar" ) assert str ( w . args [ 0 ]) == "bar" assert st...assert str ( w . warnings [ 1 ] . args [ 0 ]) == "bar" w . reset () assert len ( w . warnings ) == 0 全て...ugh their names indicate otherwise. 使用例: import bar import foo import unittest from test import suppor.... TestCase ): def test__all__ ( self ): extra = { 'BAR_CONST' , 'FOO_CONST' } blacklist = { 'baz' } # Und... - https://man.plustar.jp/python/library/test.html - [similar]
- 2. setup スクリプトを書く — Python 3.6.5 ドキュメント 8063
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python モジュールの
...規約のあり方は foo パッケージを lib に置き換え、 foo.bar パッケージが lib/bar にある、などとするものです。こ...に対してこの規則が暗黙のうちに適用され、その結果 foo.bar の場合が自動的に処理されます。この例では、 package...s = ['foo', 'foo.bar'] は、 Distutils に lib/__init__.py と lib/bar/__i...ension ( 'foo' , [ 'foo.c' ]), Extension ( 'subpkg.bar' , [ 'bar.c' ])], ) とすると、 foo.c をコンパイルし... - https://man.plustar.jp/python/distutils/setupscript.html - [similar]
