OOP Learning Example by Uncle Engineer
Project description
วิธีติดตั้ง
เปิด CMD / Terminal
pip install uncleschool
วิธีเล่น
เปิด IDLE ขึ้นมาแล้วพิมพ์…
from uncleschool 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('------uncle: ใครอยากเรียนโค้ดดิ้ง?---(ให้ 10 exp)----')
student1.AddEXP(10)
print('========3 Jan========')
student1.name = 'Albert Einstein'
print('ตอนนี้ exp ของแต่ละคนได้เท่าไรกันแล้ว')
print(student1.name, student1.exp)
print(student2.name, student2.exp)
print('========4 Jan========')
for i in range(5):
student2.Coding()
student1.ShowEXP()
student2.ShowEXP()
พัฒนาโดย: ลุงวิศวกร สอนคำนวณ FB: https://www.facebook.com/UncleEngineer YouTube: https://www.youtube.com/UncleEngineer
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
uncleschool-0.3.tar.gz
(3.4 kB
view details)
File details
Details for the file uncleschool-0.3.tar.gz
.
File metadata
- Download URL: uncleschool-0.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a8b447e7f5297d30cb5240e9c61620cb3f174a3f41847099fce28bff3280eed |
|
MD5 | 2ffa2374f22ad72c97c3c189992699ac |
|
BLAKE2b-256 | 6e68182d761fb6080a25ee1b6fe76bc5ddc3568cfb0f564f4f914a58a4881d0f |