4. Page 4
Technology for Transformational Learning
Movement and location
controlled interface
Mobile Learning
Cloud Computing
Social Connect Media
16. Page 16
Topic
o รู้จักภาษา Python
o การติดตั้งและปรับแต่งภาษา Python
o เรียนรู้ทางลัดในการเขียนโปรแกรมภาษา Python
o การติดตั้ง Python Libraries
o การพัฒนาโปรแกรม GUI
o การทางานร่วมกับฐานข้อมูล MySQL, MongoDB
o การพัฒนา Web Application ด้วย Python (Django Framework)
o การเขียน Python บนคอมพิวเตอร ์แบบฝังตัว
29. Page 29
การเขียน Comment
# Program by : Member list
“””
Program : Member list
Write by : Arnut Ruttanatirakul
Create date: 17 May 2019
“””
หมายเหตุหลายบรรทัด ใช้Double quotes 3 ตัว
หมายเหตุบรรทัดเดียว
30. Page 30
คาสั่งแสดงผล
• รูปแบบ
print (ข้อมูล)
print (ข้อมูล1, ข้อมูล2, ข้อมูล3, …)
ตัวอย่าง
>>> print (20)
20
>>> print(‘’I am Programmer”)
I am Programmer
31. Page 31
คาสั่งในการรับข้อมูล
variable = input (‘arg’)
variable : ตัวแปรที่ใช้เก็บข้อมูลอินพุตที่มาจาคีย์บอร ์ด
arg : ข้อความที่ให้แสดงบนหน้าจอก่อนการรับข้อมูลจากคีย์บอร ์ด
ตัวอย่าง
>>> a = input ('Enter a Employee Salary : ')
Enter a Employee Salary: 25
>>> print('Your a Salary', a)
Your Salary is 25
รูปแบบ
40. Page 40
การพัฒนาโปรแกรม GUI
o Tkinter (ค่า default)
o PyQT
o PyGTK
o wxPython
o IronPython
o Jpython
o Kivy
o PyOpenGL
o FxPy
ไลบรารีสาหรับพัฒนา GUI