Skip to main content

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 details)

Uploaded Source

File details

Details for the file angryduckschool-0.6.tar.gz.

File metadata

  • Download URL: angryduckschool-0.6.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3

File hashes

Hashes for angryduckschool-0.6.tar.gz
Algorithm Hash digest
SHA256 3ee1453bad40819e9e8d1e4b8f4f1555786630cf475cc329a21be1a7581b7be5
MD5 e3c4e983764b3b45a0006ee362b87600
BLAKE2b-256 9ab160d73d1b275de4fcbc3afa582e4b0fc5fa22f38beae6b4dec1fa4a520d5a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page