組み込み型

2003-02-09 Python.use(better) #課題:組み込み型 list

組み込み型 ★★

  • 組み込み型と同等の機能を実現する課題を通して「OOP」の理解を深めます。

theme 《基礎編》
課題:組み込み型 list
組み込み型 list と同等の機能を実現する課題を通して「OOP」の理解を深めます。
dict
組み込み型 dict と同等の機能を実現する課題を通して「OOP」の理解を深めます。
set
組み込み型 set と同等の機能を実現する課題を通して「OOP」の理解を深めます。

dict

TOP

関数


関数 ★★

組み込み関数
eval Python はじめました:組み込み関数 eval - 続・ひよ子のきもち〈第3版〉
compile Python はじめました:組み込み関数 compile - 続・ひよ子のきもち〈第3版〉
Python はじめました:組み込み関数 compile: 引数 mode= - 続・ひよ子のきもち〈第3版〉
  • locals
  • globals
  • exec
  • hasattr
  • setattr
  • getattr
  • delattr
    • 2008-04-28 付録B 組み込み関数 getattr/setattr
  • super
  • isinstance
  • issubclass
  • classmethod
  • staticmethod
  • vars


theme 《基礎編》
課題:スタック
《関数版》
課題を作成する過程を通して「関数」の理解を深めます。前に作成した「クラス」版との違いを確認します。クラスを利用せずに「クラス版」と同等の機能を実現します。
課題:range
《関数版》
組み込み関数と同等の機能を実現する過程を通して「関数」の理解を深めます。
□□□□□□□□□

TOPUP〈関数〉

Python.use(better)

記事一覧入門編基礎編応用編中級編

Python.use(better)
Python はじめました 《Python3.1|Jython2.5.1|IronPython2.6》

《著》小粒ちゃん+∞《監修》小泉ひよ子とタマゴ倶楽部
第0版♪2001/03/02 ● 第1版♪2003/05/25 ● 第2版♪2004/06/01 ● 第3版♪2009/02/28

★ 初級/入門  ★★ 初級/基礎  ★★★ 初級/応用  ★★★★ 中級  ★★★★★ 上級


■ CONTENTS


初級/基礎編

データと式 ★★

制御構造 ★★

TOP

関連記事

クラス

クラス ★★

局所クラス


特殊メソッド
  • 2002-05-15 Python.use(better) 特殊メソッド __contains__
  • 2002-05-14 Python.use(better) 特殊メソッド __len__
  • 2002-05-13 Python.use(better) 特殊メソッド __repr__
  • 2002-05-16 Python.use(better) 特殊メソッド __setattr__

TOP

モジュール ★★

TOP

》作業中です《

misc.






['ArithmeticError', 'AssertionError', '', 'BaseException', 'BufferError', 'BytesWarning', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception', '', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', '', '', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'NameError', '', 'NotImplemented', '', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'ReferenceError', 'RuntimeError', 'RuntimeWarning', 'StopIteration', '', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', '', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', '', 'Warning', '', '_', '__build_class__', '__debug__', '', '__import__', '', '__package__', 'abs', '', '', 'ascii', 'bin', '', 'bytearray', 'bytes', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exit', '', '', '', 'frozenset', '', '', '', 'hash', '', '', '', 'input', '', '', '', 'iter', '', '', '', '', '', '', 'memoryview', '', 'next', '', '', '', '', 'pow', '', 'property', 'quit', '', '', '', '', '', '', 'slice', '', '', '', '', '', '', '', '', '']

from nonlocal del global as import
sorted reversed

>>> x[3]
...
TypeError: 'myList' object does not support indexing
>>> x[3] = 4
...
TypeError: 'myList' object does not support item assignment
>>> del x[0]
...
TypeError: 'myList' object doesn't support item deletion
>>>