Skip to content

krittinkj/poohschool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

นี่คือตัวอย่างโปรแกรมสำหรับการเรียน OOP

วิธีติดตั้ง

เปิด CMD / Terminal

pip install poohschool

วิธีเล่น

เปิด IDLE ขึ้นมาแล้วพิมพ์...

from poohschool import Student, SpecialStudent
print('=====1 Jan=======')
student0 = SpecialStudent('Marc Zuckerberg','Bill Gates')

student0.AskEXP()
student0.ShowEXP()


student1 = Student('Albert')
print(student1.name)
student1.Hello()



print('----------')
student2 = Student('Steve')
print(student2.name)
student2.Hello()
print('=======2 Jan=======')
print('-----ใครอยากเรียนโค้ดดิ้ง----(10 exp)-----')
student1.AddEXP(10)

print('======3 Jan=======')

print(student1.name, student1.exp)
print(student2.name, student2.exp)

print('======4 Jan=======')

for i in range(5):
student2.Coding()

student1.ShowEXP()
student2.ShowEXP()

พัฒนาโดย: Krittin Kitjaruwannakul Ig: pooh.ktt

About

No description, website, or topics provided.

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages