package practice to learn python OOP by PtP
Project description
วิธีติดตั้ง
เปิด CMD / Terminal
pip install PtPclass
วิธีเล่น
เปิด IDLE ขึ้นมาแล้วพิมพ์…
from PtPclass import Student, StudentSpecial
print('=======1 Jan=======')
student0 = SpecialStudent('Will', '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)')
print('=======3 Jan=======')
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()
พัฒนาโดย: Phet THEPVONGSA
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
PtPclass-0.0.8.tar.gz
(3.1 kB
view details)
File details
Details for the file PtPclass-0.0.8.tar.gz.
File metadata
- Download URL: PtPclass-0.0.8.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/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
106f8a16074f2d73b0bb2fce5aab8921eadf8a40eba6a6df81a7d46742f5527c
|
|
| MD5 |
67d729bafc528d7eda56772867cb6859
|
|
| BLAKE2b-256 |
28856516c3d8e3b7da02a012c68e220a010eba458b996e85f80cc97627f6fc15
|