Skip to main content

Library OOP for workwith odc by Tun Kedsaro

Project description

(LazyEarth) Library OOP for workwith odc by Tun Kedsaro


โปรแกรมแชทนี้เป็นโปรแกรมที่เขียนขึ้นมาโดยใช้ Python โดยการเขียนแบบ OOP สำหรับใช้งานในการสร้าง class employee อย่างรวดเร็ว เพียงแค่มี Python อยู่ในคอมพิวเตอร์ก็สามารถใช้งานได้เลย เบื้องหลังการทำงานจะประกอบไปด้วย Engineer,Accounting,Sale

ปล. เวอร์ชั่นนี้ยังไม่สมบูรณ์ (เขียนแบบรีบๆ) เขียนเพื่อนำ concept OOP มาสร้าง library แล้วก็ upload ขึ้น Github กับ PyPI ต่อไป สำหรับนักพัฒนาสามารถนำ Source Code ไปพัฒนาต่อได้เต็มที่ ซึ่งก็คืออีกโปรเจคนึ่งนั้นแหละ เพราะว่า jupyter มันไม่สามารถ import def ได้เหมือนกับตัว คอมก็เลยใช้วิธีนี้เอา และก็ยังมีอีกหลาย library ที่เขียนดองเอาไว้ตั้งแต่สมัยเรียน ปี3, 4 แต่ว่ายังไม่ได้ upload (เขียนไปงั้นแหละต้องใช้ความยาวระดับหนึ่งไม่งั้นไม่สามารถอัพได้)

วิธีติดตั้ง

เปิด CMD / Terminal

pip install lazyemployee

วิธีใช้

[STEP 1] - เปิด IDLE ขึ้นมาแล้วพิมพ์…

from lazyemployee import Employee
from lazyemployee import Accounting,Programmer,Sale
  • หรือเปิด cmd / terminal แล้วพิมพ์

python -m lazyemployee

[STEP 2] - ประกาศ class employee กรอก ชื่อ ตำแหน่งงาน และ เงินเดือน - สามารถเรียกการแสดงผลได้โดยการใช้คำสั่ง detail() - สามารถเปลี่ยนข้อมูลข้างในได้ด้วยการใช้ฟังก์ชัน setname() ,setsalary(),setjob() - สามารถรับค่าข้อมูลข้างในได้ด้วยการใช้ฟังก์ชัน getname() ,getsalary(),getjob()

[STEP 3] - ใช้งานได้เลยจ้าาา

Develop by : Tun Kedsaro FB: I dont tell you. YouTube: Tun Kedsaro

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

lazyearth-0.0.2.tar.gz (4.4 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for lazyearth-0.0.2.tar.gz
Algorithm Hash digest
SHA256 53edb0085e470a84a084e3dd3b6b495e2f7f196d3a9472f6241609ec8fa1f84f
MD5 f788a484e73e9ea9fa7a676b97be375c
BLAKE2b-256 db5a02ed194a00b933f4cdb4e47f810cb53d3ffad41aa0ee3e02b7cd49a9c4f0

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