package practice to learn python OOP by PtP
Project description
ตัวอย่างโปรแกรมหัดเขียนPython
วิธีติดตั้ง
เปิด CMD / Terminal
.. code:: python
pip install PtPclass
วิธีเล่น
เปิด IDLE ขึ้นมาแล้วพิมพ์...
.. code:: python
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.7.tar.gz
(3.1 kB
view details)
File details
Details for the file PtPclass-0.0.7.tar.gz.
File metadata
- Download URL: PtPclass-0.0.7.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 |
4ac86a8c6f06eb669c6ad9bd36e924c7cc35f0db9ecacdaa97cb279b0ed690d7
|
|
| MD5 |
1f2aad15209f974e5048b7477bbf1f9a
|
|
| BLAKE2b-256 |
f51cd7fbf384dae89b9796ee66715f59d4531895efe3783b0c619db8f5887f90
|