1. Trang chủ
  2. » Công Nghệ Thông Tin

Learn python english ebook

59 422 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 59
Dung lượng 6,75 MB

Nội dung

[...]... 1449 1450 C Python Changes and This Book 1451 Major 2.X/3.X Differences 3.X Differences 3.X-Only Extensions General Remarks: 3.X Changes Changes in Libraries and Tools Migrating to 3.X Fifth Edition Python Changes: 2.7, 3.2, 3.3 Changes in Python 2.7 Changes in Python 3.3 Changes in Python 3.2 Fourth Edition Python Changes: 2.6, 3.0, 3.1 Changes in Python 3.1... Installing the Python Interpreter Is Python Already Present? Where to Get Python Installation Steps xxx | Table of Contents 1421 1421 1422 1423 Configuring Python Python Environment Variables How to Set Configuration Options Python Command-Line Arguments Python 3.3 Windows Launcher Command Lines For More Help 1427 1427 1429 1432 1435 1436 B The Python 3.3 Windows Launcher ... Storing Python Objects in Files: Conversions Storing Native Python Objects: pickle Storing Python Objects in JSON Format Storing Packed Binary Data: struct File Context Managers Other File Tools Core Types Review and Summary Object Flexibility References Versus Copies Comparisons, Equality, and Truth The Meaning of True and False in Python Python’s Type Hierarchies Type Objects Other Types in Python. .. 1 A Python Q&A Session If you’ve bought this book, you may already know what Python is and why it’s an important tool to learn If you don’t, you probably won’t be sold on Python until you’ve learned the language by reading the rest of this book and have done a project or two But before we jump into details, this first chapter of this book will briefly introduce some of the main reasons behind Python s... Schemes How Python Stores Strings in Memory Python s String Types Text and Binary Files Coding Basic Strings Python 3.X String Literals Python 2.X String Literals String Type Conversions Coding Unicode Strings Coding ASCII Text Coding Non-ASCII Text Encoding and Decoding Non-ASCII text Other Encoding Schemes Byte String Literals: Encoded Text Converting Encodings Coding Unicode Strings in Python 2.X... 294 295 297 297 300 304 306 306 308 308 308 309 310 311 311 311 312 313 Part III Statements and Syntax 10 Introducing Python Statements 319 The Python Conceptual Hierarchy Revisited Python s Statements A Tale of Two ifs What Python Adds What Python Removes Why Indentation Syntax? A Few Special Cases A Quick Example: Interactive Loops A Simple Interactive Loop... personal preference But after teaching Python to roughly 260 groups and over 4,000 students during the last 16 years, I have seen some common themes emerge The primary factors cited by Python users seem to be these: Software quality For many, Python s focus on readability, coherence, and software quality in general sets it apart from other tools in the scripting world Python code is designed to be readable,... languages The uniformity of Python code makes it easy to understand, even if you did not write it In addition, Python has deep support for more advanced software reuse mechanisms, such as object-oriented (OO) and function programming Developer productivity Python boosts developer productivity many times beyond compiled or statically typed languages such as C, C++, and Java Python code is typically one-third... 339 Assignment Statements Assignment Statement Forms Sequence Assignments Extended Sequence Unpacking in Python 3.X Multiple-Target Assignments Augmented Assignments Variable Name Rules Expression Statements Expression Statements and In-Place Changes Print Operations The Python 3.X print Function The Python 2.X print Statement Print Stream Redirection Version-Neutral Printing Chapter Summary Test Your... popularity To begin sculpting a definition of Python, this chapter takes the form of a question-and-answer session, which poses some of the most common questions asked by beginners Why Do People Use Python? Because there are many programming languages available today, this is the usual first question of newcomers Given that there are roughly 1 million Python users out there at the moment, there really . Android Marketplace, and Amazon.com. FIFTH EDITION Learning Python Mark Lutz Beijing • Cambridge • Farnham • Köln • Sebastopol • Tokyo Learning Python, Fifth Edition by Mark Lutz Copyright © 2013. Easy to Learn 20 It’s Named After Monty Python 20 v How Does Python Stack Up to Language X? 21 Chapter Summary 22 Test Your Knowledge: Quiz 23 Test Your Knowledge: Answers 23 2. How Python Runs. 3 Software Quality 4 Developer Productivity 5 Is Python a “Scripting Language”? 5 OK, but What’s the Downside? 7 Who Uses Python Today? 9 What Can I Do with Python? 10 Systems Programming 11 GUIs 11 Internet

Ngày đăng: 22/10/2014, 21:03

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN