Skip to main content

Create For Learing Only!!

Project description

(MACOOP) สำหรับเรียนรู้พัฒนาระบบ

โปรแกรมนี้ใช้ทดสอบระบบเท่านั้น!!

วิธีติดตั้ง

เปิด CMD / Terminal

pip install macoop

Day 0

allstudent = []

teacher1 = Teacher('Ada Lovelace')
teacher2 = Teacher('Bill Gates')
print(teacher1.students)




#Day 1
print('----------Day 1 --------')
St1 = Student('Albert','Einstein')
allstudent.append(St1)
teacher2.AddStudent(St1)
print(St1.fullname)

print('----------Day 2 --------')
#Day 2
St2 = Student('Steve','Jobs')
allstudent.append(St2)
teacher2.AddStudent(St1)
print(St2.fullname)

#Day 3
print('----------Day 3 --------')
for i in range(3):
    St1.Codeing()

St2.Codeing()
St1.ShowExp()
St2.ShowExp()

#Day 4
print('----------Day 4 --------')

stp1 = SpecialStudent('Thomas', 'Edison', 'Hitler')
allstudent.append(stp1)
teacher1.AddStudent(stp1)
print(stp1.fullname)
print('คุณครูครับ ชอคะแนนฟรี 20 คะแนนได้ไหม')
stp1.exp = 20
stp1.Codeing()
stp1.ShowExp()

#Day 5
print('----------Day 5 --------')
print('นักเรียนกลีบบ้านกันยังไง')

print(allstudent)
for st in allstudent:
    print('ผม {} กลับ้านด้วย {} ครับ'.format(st.name, st.vehicle))
    print(isinstance(st,SpecialStudent))
    if isinstance(st,SpecialStudent):
        st.vehicle.SelfDriving(st)

#Day 6
print('----------Day 6 --------')


teacher1.CheckStudent()
teacher2.CheckStudent()

print('รวมพลังของนักเรียน 2 คน', St1 + St2)

```

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

macoop-0.0.2.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file macoop-0.0.2.tar.gz.

File metadata

  • Download URL: macoop-0.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for macoop-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b04a9b278de3727f40b64a9621e2646b15d3833e11114c10f882f8430e2da941
MD5 c7aaa34630b3824286d64492b1f6a330
BLAKE2b-256 0437001365fc0671da0df80606076255aa9793aac286bd168ce518bb85a224be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page