Skip to main content

OOPzchool learning to upload to PyPI

Project description

Python OOP+วิธีสร้าง library เป็นของตัวเอง + Upload package ไปยัง PyPI.org PyPI: https://pypi.org/project/unclechat/

This program use for learn how to upload PyPi credit uncle engineer.

ปล. เวอร์ชั่นนี้ยังไม่สมบูรณ์ (เขียนแบบรีบๆ 55) ลุงเขียนขึ้นมาเพื่อประยุกต์นำ Python + Socket Library สร้างเป็นโปรแกรมแชทตัวอย่าง สำหรับนักพัฒนาสามารถนำ Source Code ไปพัฒนาต่อได้เต็มที่

วิธีติดตั้ง

เปิด CMD / Terminal

pip install oopzchool

วิธีใช้

วิธีการใช้งาน

  • เปิด IDLE ขึ้นมาแล้วพิมพ์…

```python from oopzchool.school import Student,Tesla,SpecialStudent,Teacher #Day 0 print(“—-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)

#Day 2 print(“—-day 2—-”) st2 = Student(‘Steve’,‘Jobs’) allstudent.append(st2) teacher2.AddStudent(st2) print(st2.fullname)

#Day 3 print(“—-day 3—-”) for i in range(3): st1.Coding() st2.Coding() st1.ShowEXP() st2.ShowEXP()

#Day 4 print(“—-day 4—-”)

stp1 = SpecialStudent(‘Thomas’,‘Edison’,‘Hitler’) allstudent.append(stp1) teacher1.AddStudent(stp1) print(stp1.fullname) print(“Teasher give me 20 point”) stp1.exp = 20 stp1.Coding() stp1.ShowEXP()

#Day 5 print(“—-day 5—-”) print(“Hey student How do you go to your home?”) print(allstudent) for st in allstudent: print(“I : {} back home with {}”.format(st.name,st.vehicle)) #check ว่า object นี้เป็น class อะไร if isinstance(st,SpecialStudent): st.vehicle.SelfDriving(st)

#Day 6 print(“—-day 6—-”) teacher1.CheckStudent() teacher2.CheckStudent() print(‘Sum exp’,st1+st2)

หากต้องการสร้างห้องใหม่ - กด New Room - โปรแกรมจะสร้างห้องให้อัตโนมัติ (จำเลขห้องไว้ส่งให้เพื่อน) - กด Enter Chatroom เพื่อเริ่มแชท

[STEP 3] - ใช้งานได้เลยจ้าาา หากมีการกดปิดโปรแกรมระบบจะแจ้งให้สมาชิกท่านอื่นทราบว่าผู้ใช้ได้ออกจากกลุ่มแล้ว

พัฒนาโดย: ลุงวิศวกร สอนคำนวณ FB: https://www.facebook.com/UncleEngineer YouTube: https://www.youtube.com/UncleEngineer

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

oopzchool-0.0.2.tar.gz (5.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: oopzchool-0.0.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for oopzchool-0.0.2.tar.gz
Algorithm Hash digest
SHA256 31b6a7ec37b5e06e779a0aecd16e714b7289598d5d295177d4452d9d84acea23
MD5 9d6c8ae08aa6c0d7cfd275e2ea9434f2
BLAKE2b-256 d928da10b354632b23f249f37890d967eb89364e7b9486b4a37cb5a075d5bdad

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