Ad
1: 2017-01-07 (土) 05:49:15 njf ソース バックアップ No.1 を復元して編集
Line 1: Line 1:
 +*基本 [#u61fc2c4]
 +クラスの定義は「class」で行います。
 +コンストラクタは「__init__」で、インスタンス化に「new」は不要です。
 +
 + class TestClass:
 +     def __init__(self):
 +         print "construct!"
 +
 + testClass = TestClass()
 +
 +結果
 + construct!


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード印刷に適した表示   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom Powered by xpWiki
Counter: 2369, today: 1, yesterday: 0
MenuBar
広告

ログイン

ユーザー名:


パスワード:





パスワード紛失

Portuguese | English | German | Greek | Japanese | Korean | Russian | T-Chinese top
NJF