สวัสดีผู้อ่านทุกท่านครับ หลาย ๆ ท่านที่เป็นนักเรียน นักศึกษา บุคคลทั่วไป หรือ คุณครู/อาจารย์ ที่เรียนหรือสอนภาษา Python คงเคยยุ่งยากกับการติดตั้ง Python บน Windows ลงเครื่องคอมพิวเตอร์เครื่องเดียวหรือเครื่องคอมพิวเตอร์จำนวนมาก
Read More
12 ธันวาคม 2559
10 ธันวาคม 2559
Published ธันวาคม 10, 2559 by wannaphong with 5 comments
สวัสดีผู้อ่านทุกท่านครับ บทความนี้ผมจะพาผู้อ่านไปเขียนโปรแกรมเช็คคำผิดภาษาไทยด้วย Hunspell กับภาษา Python กันครับ
Read More
Published ธันวาคม 10, 2559 by wannaphong with 0 comment
เราสามารถเขียนโค้ด Python ให้รันไฟล์ Python อีกไฟล์หนึ่งได้โดยไม่จำเป็นต้องทำเป็นโมดูล ด้วยคำสั่ง
Read More
import runpy
runpy.run_path("ที่ตั้งไฟล์ในระบบ")
Published ธันวาคม 10, 2559 by wannaphong with 0 comment
เมื่อสองเดือนที่ผ่านมา ทาง LINE ได้ทำการเปิดหน้า line-bot-sdk-python บน GitHub อย่างเงียบ ๆ ถือเป็น Messaging API SDK อย่างเป็นทางการจาก LINE
หน้า line-bot-sdk-python บน GitHub : https://github.com/line/line-bot-sdk-python
Read More
หน้า line-bot-sdk-python บน GitHub : https://github.com/line/line-bot-sdk-python
5 ธันวาคม 2559
Published ธันวาคม 05, 2559 by wannaphong with 0 comment
ผมได้ทำการเปิด GitHub สำหรับใช้เก็บไฟล์โค้ด python ที่ใช้ประกอบบทความ python ทั้งหมดในบล็อกนี้
GitHub : https://github.com/wannaphong/code-python3-blog
ใช้ MIT License
Read More
GitHub : https://github.com/wannaphong/code-python3-blog
ใช้ MIT License
Published ธันวาคม 05, 2559 by wannaphong with 0 comment
บทความนี้จะพาผู้อ่านไปดึงข้อมูล Whois โดเมนด้วย Python กันครับ
Read More
30 พฤศจิกายน 2559
Published พฤศจิกายน 30, 2559 by wannaphong with 1 comment
Anaconda เป็นชุดแจกจ่าย Python ที่มีคนนิยมใช้งานกันทั่วโลก โดยมีจุดเด่นที่ติดตั้งง่ายและมีโมดูลพร้อมใช้งานพร้อมติดตั้งได้โดยสะดวกด้วย conda
Read More
17 พฤศจิกายน 2559
Published พฤศจิกายน 17, 2559 by wannaphong with 0 comment
Victor Stinner นักพัฒนาภาษา Python ได้ออกมาทวีตผ่านทวีตเตอร์ส่วนตัวของเขาว่า "การทดสอบ sympy : Python 3.6 เร็วกว่า Python 2.7 อยู่ระหว่าง 8% และ 48%"
นับเป็นสัญญาที่ดีสำหรับผู้ที่กำลังใช้ Python 2.7 และ ต้องการย้ายมาใช้ Python 3
ดูผลการทดสอบประสิทธิภาพ Python รุ่นต่าง ๆ ได้ที่ https://speed.python.org/comparison/
Read More
sympy benchmarks: Python 3.6 is between 8% and 48% faster than Python 2.7 #python #benchmark pic.twitter.com/26NiDfnEJG
— Victor Stinner (@VictorStinner) 3 พฤศจิกายน 2559
นับเป็นสัญญาที่ดีสำหรับผู้ที่กำลังใช้ Python 2.7 และ ต้องการย้ายมาใช้ Python 3
ดูผลการทดสอบประสิทธิภาพ Python รุ่นต่าง ๆ ได้ที่ https://speed.python.org/comparison/
22 ตุลาคม 2559
Published ตุลาคม 22, 2559 by wannaphong with 0 comment
ในการเขียนโปรแกรมสำหรับดูแลรักษาระบบ ผู้ดูแลระบบหลายคนคงใช้งาน Linux server และ Unix server โดยที่ไม่ได้ติดตั้ง GUI
Read More
20 ตุลาคม 2559
Published ตุลาคม 20, 2559 by wannaphong with 0 comment

ทาง PyPy ได้ออก PyPy3 5.5.0 แล้ว โดย PyPy3 5.5.0 รุ่นนี้ถูกปรับปรุงให้สนับสนุน Python 3.3.5 สนับสนุนทุก OS ที่รันบน X86 แต่ไม่รองรับ Windows
สามารถโหลด PyPy3 5.5.0 ได้ที่ http://pypy.org/download.html
Published ตุลาคม 20, 2559 by wannaphong with 0 comment
ใน scikit-learn 0.1.18 รุ่นถัดไป จะมีความสามารถใหม่เพิ่มเข้ามา หนึ่งในนั้น คือ Neural network models (supervised)
จาก
[python]>>> from sklearn.neural_network import MLPClassifier
>>> X = [[0., 0.], [1., 1.]]
>>> y = [0, 1]
>>> clf = MLPClassifier(algorithm='l-bfgs', alpha=1e-5, hidden_layer_sizes=(5, 2), random_state=1)
>>> clf.fit(X, y)
MLPClassifier(activation='relu', algorithm='l-bfgs', alpha=1e-05,
batch_size='auto', beta_1=0.9, beta_2=0.999, early_stopping=False,
epsilon=1e-08, hidden_layer_sizes=(5, 2), learning_rate='constant',
learning_rate_init=0.001, max_iter=200, momentum=0.9,
nesterovs_momentum=True, power_t=0.5, random_state=1, shuffle=True,
tol=0.0001, validation_fraction=0.1, verbose=False,
warm_start=False)
>>> clf.predict([[2., 2.], [-1., -2.]])
array([1, 0])[/python]
อ่านเอกสารได้ที่ http://scikit-learn.org/stable/modules/neural_networks_supervised.html
Read More
จาก
[python]>>> from sklearn.neural_network import MLPClassifier
>>> X = [[0., 0.], [1., 1.]]
>>> y = [0, 1]
>>> clf = MLPClassifier(algorithm='l-bfgs', alpha=1e-5, hidden_layer_sizes=(5, 2), random_state=1)
>>> clf.fit(X, y)
MLPClassifier(activation='relu', algorithm='l-bfgs', alpha=1e-05,
batch_size='auto', beta_1=0.9, beta_2=0.999, early_stopping=False,
epsilon=1e-08, hidden_layer_sizes=(5, 2), learning_rate='constant',
learning_rate_init=0.001, max_iter=200, momentum=0.9,
nesterovs_momentum=True, power_t=0.5, random_state=1, shuffle=True,
tol=0.0001, validation_fraction=0.1, verbose=False,
warm_start=False)
>>> clf.predict([[2., 2.], [-1., -2.]])
array([1, 0])[/python]
อ่านเอกสารได้ที่ http://scikit-learn.org/stable/modules/neural_networks_supervised.html
Published ตุลาคม 20, 2559 by wannaphong with 0 comment
สวัสดีผู้อ่านทุกท่านครับ หลังจากที่เดือนก่อน ในช่วงสงกรานต์ งาน Facebook F8 ได้เปิดตัว Facebook Messenger Bot API โดยอนุญาตให้นักพัฒนาภายนอกสามารถพัฒนาบ็อตแชทต่าง ๆ ผ่าน Send/Receive API ที่ทาง Facebook กำหนด สามารถรับส่งข้อความได้ตามที่ต้องการ
Read More
Published ตุลาคม 20, 2559 by wannaphong with 0 comment
ประกาศงดเขียนบทความ 1 เดือน เนื่องจากผมต้องสอบเข้ามหาวิทยาลัย ช่วงเดือนตุลาคม ถึง ปลายเดือนพฤศจิกายน #dek60
วรรณพงษ์ ภัททิยไพบูลย์
20 ตุลาคม พ.ศ. 2559
ขอบคุณครับ
Read More
วรรณพงษ์ ภัททิยไพบูลย์
20 ตุลาคม พ.ศ. 2559
ขอบคุณครับ
สมัครสมาชิก:
บทความ (Atom)