OOP Learning Example by Angryduck
Project description
วิธีติดตั้ง
เปิด CMD / Terminal
pip install angryduckschool
วิธีเล่น
เปิด IDLE ขึ้นมาแล้วพิมพ์…
from angryschool import Student, SpecialStudent
print('========1 Jan========')
student0 = SpecialStudent('Mark 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('------Angryduck: Who want to learn coding?---(Give 10 exp)----')
student1.AddEXP(10)
print('========3 Jan========')
student1.name = 'Albert Einstein'
print('Exp of each student : ')
print(student1.name, student1.exp)
print(student2.name, student2.exp)
print('========4 Jan========')
for i in range(5):
student2.Coding()
student1.ShowEXP()
student2.ShowEXP()
พัฒนาโดย: Angryduck888 FB: N/A YouTube: N/A
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
angryduckschool-0.6.tar.gz
(3.1 kB
view hashes)