# -*- coding:utf-8 -*-
'''
Hello world のサンプルプログラム
'''
# ============================================
# クラス: Print_Text
# ============================================
class Print_Text():
'''
テキストを表示するプログラム
'''
def __init__(self, text):
'''初期化ルーチン'''
self.text = text
def print(self, n): # n回の繰り返し
'''テキストを n 回表示する'''
for i in range(n):
print('{0:s}'.format(self.text))
# ============================================
# メインルーチン
# ============================================
if __name__ == '__main__':
hello = Print_Text('Hello wold !')
hello.print(5)