'''
data = input().split()
k = int(input())
print(data[k-1])
'''
'''
class factoryBase:
def __init__(self):
print('HELLO INIT')
class candyFactory:
fb = factoryBase()
def __init__(self): # initialize function is auto excuted
print('Init clear')
self.makeaCandy()
self.fb
def makeaCandy(self): # not auto excute
print('Make Center')
self.ccalcu(100, 2000)
def ccalcu(self, a, b):
print(a+b)
myFactory = candyFactory()
myFactory.makeaCandy()
myFactory.ccalcu(100, 200)
a = candyFactory()
b = candyFactory()
c = candyFactory()
'''
# QUEST : Human information System using Class
class HIS:
def __init__(self, name, age, height):
print('HELLO System')
self.dataInput(name, age, height)
def dataInput(self, name, age, height):
self.name = name
self.age = age
self.height = height
self.say()
def say(self):
print('My Name is ', self.name, 'My age is ', self.age, 'My height', self.height)
name = input('type your name')
age = input('type your age')
height = input('type your height')
v = HIS(name, age, height)
#v.dataInput(name, age, height)
#v.say()
top of page
실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
2021819
2021819
댓글 0개
좋아요
댓글(0)
bottom of page