Skip to main content

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


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.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file tanaod-0.0.1.tar.gz.

File metadata

  • Download URL: tanaod-0.0.1.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

Hashes for tanaod-0.0.1.tar.gz
Algorithm Hash digest
SHA256 763dea6f940703832df25d5e4abb31b14ef693ac9759f78f0b6400414721cf50
MD5 fce288e55c590bea28d0606f0f35d545
BLAKE2b-256 dbb9f4e491ce69ab0c46b00a9cd205ba2820b1d026285da31990129c1f8373ac

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