First libary from tanaod
Project description
PyPI: https://pypi.org/project/tanaod/
โปรแกรมนี้ใช้สำหรับเขียนโปรแกรมแบบ OOP
วิธีติดตั้ง
เปิด CMD / Terminal
pip install tanaod
วิธีใช้
[STEP 1] - เปิด IDLE ขึ้นมาแล้วพิมพ์…
from tanaod import Student,Tesla,SpecialStudent,Teacher
#day0
print('---------day0---------')
allstudent = []
teacher1 = Teacher('ada lovelace')
teacher2 = Teacher('bill gate')
print(teacher1.students)
#day1
print('--------day1--------')
st1 = Student('Albert','Einstein')
allstudent.append(st1)
print(st1.fullname)
teacher2.Addstudent(st1)
#day2
print('--------day2--------')
st2 = Student('steve','jobs')
allstudent.append(st2)
print(st2.fullname)
teacher2.Addstudent(st2)
#day3
print('--------day3--------')
for i in range(3):
st1.Coding()
st2.Coding()
st1.Showexp()
st2.Showexp()
#day4
print('-------day4---------')
stp1 = SpecialStudent('thomas' , 'Edison' ,'Hitler')
allstudent.append(stp1)
teacher1.Addstudent(st1)
print(stp1.fullname)
stp1.exp = 20
stp1.Coding()
stp1.Showexp()
#day5
print('-------day5---------')
print('กลับบ้านยังไง')
print(allstudent)
for st in allstudent:
print('ผม {} กลับด้วย {} ครับ'.format(st.name,st.vehicle))
if isinstance(st,SpecialStudent):
st.vehicle.SelfDriving(st)
#day6
print('---------day6--------')
teacher1.CheckStudent()
teacher2.CheckStudent()
print('รวมพลังของนักเรียน2คน',st1 + st2)
พัฒนาโดย: ตนุภัทร สถืตวรรธนะ FB: https://www.facebook.com/tanupat.satitvattana/ IG: tan_aod , a0d14
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
tanaod-0.0.2.tar.gz
(3.6 kB
view details)
File details
Details for the file tanaod-0.0.2.tar.gz
.
File metadata
- Download URL: tanaod-0.0.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f5795e723d17201f5c4175e496a2d1cb55bd7c8ad2ce9ff22dbaee7a91046b5 |
|
MD5 | c9435d6cd917d42060eb28156cc5127c |
|
BLAKE2b-256 | 55df0363c82e7a13d941934736f0c7341b918558ebbe15db3970a24bdd1f31e1 |