ผู้ใช้:NP-chaonay/ทดลองเขียน/ภาษาไพทอน

ตำรานี้อธิบายถึง ไพทอน, an open-source general-purpose interpreted programming language available for a broad range of operating systems. There are currently four major implementations: the standard implementation written in C, Jython written in Java, IronPython written in C# for the .NET environment and PyPy, a JIT-compiled version written in RPython - a subset of Python. รุ่นปัจจุบันคือ 3.x โดยมีรุ่น 2.x ที่กำลังจะยุติการพัฒนาและหยุดการสนับสนุนตั้งแต่ 1 มกราคม 2563. ตำรานี้อธิบายถึงไพธอนรุ่น 2.x เป็นหลัก, but does at times reference changes in version 3.  

Contents แก้ไข

แม่แบบ:Book Search

Intro แก้ไข

แม่แบบ:E-Book Reader PDF version

Overview  
Getting Python  
Setting it up 
Interactive mode  
Self Help  

Basics แก้ไข

Creating Python programs  
Variables and Strings  
Basic syntax  
Sequences   (Strings, Lists, Tuples, Dictionaries, Sets)
Data types  
Numbers  
Strings  
Lists  
Tuples  
Dictionaries  
Sets  
Basic Math   -- redundant to "Operators"
Operators  
Control Flow  
Decision Control  
Conditional Statements  
Loops  
Functions  
Scoping  
Input and output  
Files  
Text  
Modules  
Classes  
Exceptions  
Errors  
Source Documentation and Comments  
Idioms  
Package management
Python 2 vs. Python 3

Advanced แก้ไข

Decorators  
Context Managers  
Reflection  
Metaclasses  
Namespace  
Performance
PyPy
Cython
Command-line one-liners
Tips and Tricks  

Modules แก้ไข

Standard library modules แก้ไข

Standard Library  
Regular Expression  
External commands
XML Tools  
Email  
Threading  
Sockets  
GUI Programming  
Tkinter
CGI interface  
WSGI web programming  
Extracting info from web pages  
Internet  
Networks  
Math

Third-party modules แก้ไข

Databases -- to be merged with the following chapter
Database Programming  
numpy
Game Programming in Python  
Qt4  
Dbus  
pyFormex
matplotlib
Sorted Container Types
Excel
MS Word

Writing extension modules แก้ไข

Extending with C  
Extending with C++  
Extending with Pyrex  
Extending with ctypes  
Extending with Perl  

Appendices แก้ไข

Popularity
Links
Authors
Library Modules
Naming conventions

See also แก้ไข

แม่แบบ:Wikiversity



โปรดเพิ่ม {{เรียงตามอักษร}} ไปยังหน้าหัวข้อของตำราเท่านั้น