From 6b02806310a45fe7301c510cb818ef811c490637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=AF=BC=EA=B4=80?= Date: Sun, 9 May 2021 00:15:54 +0900 Subject: [PATCH] =?UTF-8?q?3=EC=A3=BC=EC=B0=A8=20=EA=B3=BC=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- abc.py | 25 +++++++++++++++++++++++++ main.py | 25 ------------------------- 2 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 abc.py diff --git a/abc.py b/abc.py new file mode 100644 index 0000000..cd9076b --- /dev/null +++ b/abc.py @@ -0,0 +1,25 @@ +class player: + + def __init__(self,name,age,team,num): + self.name = name + self.age = age + self.team = team + self.num = num + + + def info(self): + print(f'이름: {self.name}') + print(f'나이: {self.age}') + print(f'팀: {self.team}') + print(f'등번호:{self.num}') + print() + + +player1 = player('김상수',32,'삼성 라이온즈',7) +player2 = player('이대호',40,'롯데 자이언츠',10) +player3 = player('소형준',21,'KT WIZ',30) + +player1.info() +player2.info() +player3.info() + diff --git a/main.py b/main.py index cd9076b..e69de29 100644 --- a/main.py +++ b/main.py @@ -1,25 +0,0 @@ -class player: - - def __init__(self,name,age,team,num): - self.name = name - self.age = age - self.team = team - self.num = num - - - def info(self): - print(f'이름: {self.name}') - print(f'나이: {self.age}') - print(f'팀: {self.team}') - print(f'등번호:{self.num}') - print() - - -player1 = player('김상수',32,'삼성 라이온즈',7) -player2 = player('이대호',40,'롯데 자이언츠',10) -player3 = player('소형준',21,'KT WIZ',30) - -player1.info() -player2.info() -player3.info() -