ต่อมามีนักพัฒนาได้นำมาพัฒนาใช่ร่วมกับภาษา Python ในชื่อ diff_match_patch_python
diff_match_patch_python รองรับทั้ง Python 2 และ Python 3 ใช้ CC0
การติดตั้ง
ให้ทำการตั้งค่าคอมไพล์เลอร์กับ Python ให้เรียบร้อย ก่อนทำการติดตั้ง
สามารถติดตั้งได้ด้วยคำสั่ง pip:
pip3 install diff_match_patch_python
การใช้งาน
สามารถใช้งานได้ตามตัวอย่างต่อไปนี้
ผลลัพธ์
next 3 characters are in common next 2 characters are deleted next 2 characters are inserted next 9 characters are in common next 3 characters are inserted
หน้าหลัก diff_match_patch-python : https://github.com/JoshData/diff_match_patch-python
ติดตามบทความต่อไปนะครับ
ขอบคุณครับ
0 ความคิดเห็น:
แสดงความคิดเห็น
แสดงความคิดเห็นได้ครับ :)