Curso Introduction to Python 3.X
28 horasVisão Geral
Este Curso Introduction to Python 3.X, começa com o básico de escrever e executar scripts Python e depois muda para recursos mais avançados, como operações de arquivo, expressões regulares, trabalho com dados binários e uso da ampla funcionalidade dos módulos Python. Ênfase extra é colocada em recursos exclusivos do Python, como tuplas, fatias de array e formatação de saída. Esta é uma aula prática de programação. Todos os conceitos são reforçados pela prática informal durante a palestra seguida de exercícios laboratoriais graduados. A Programação Python é uma introdução prática a uma linguagem de programação funcional, não uma visão geral acadêmica de sintaxe e gramática. Os alunos poderão usar Python imediatamente para concluir tarefas no mundo real.
Publico Alvo
Usuários que desejam aprender Python e usá-lo para desenvolvimento de aplicativos, administração de sistemas ou apenas para automatizar tarefas de maneira simples, mas poderos
Pre-Requisitos
- Conhecimento de nível de trabalho/usuário de um sistema operacional como Linux, Windows ou MacOS
- Habilidade básica com pelo menos uma outra linguagem de programação é desejáve
Materiais
Inglês/Português/Lab PráticoConteúdo Programatico
About this Course
- Welcome
- Classroom etiquette
- Course outline
- Student files
- Extracting the student files
- Examples
- Lab exercises
- Appendices
An Overview of Python
- What is Python?
- The Birth of Python
- Python Timeline
- About Interpreted Languages
- Advantages of Python
- Disadvantages of Python
- How to Get Python
- How to Get Python?
- The end of 2.x
- Getting Help
- Pydoc
- Using Pydoc
The Python Environment
- Starting Python
- If the Interpreter is Not in Your PATHs
- Using the Interpreter
- Trying Out a Few Commands
- The help() Command
- Running a Python Script
- Python Scripts on Unix
- Python Scripts on Windows
- Python Editors and IDEs
Getting Started
- Using Variables
- Keywords
- Built-in Functions
- Variable Typing
- Strings
- Single-delimited String Literals
- Triple-delimited String Literals
- Raw String Literals
- Unicode Characters
- String Operators and Methods
- Numeric Literals
- Math Operators and Expressions
- Converting Among Types
- Writing to the Screen
- String Formatting
- Command Line Parameters
- Reading From the Keyboard
Flow Control
- About Flow Control
- What's with the White Space
- If and Elif
- Conditional Expressions
- Relational Operators
- Boolean Operators
- While Loops
- Alternate Ways to Exit a Loop
Sequences
- About Sequences
- Lists
- Tuples
- Indexing and Slicing
- Iterating Through a Sequence
- Using Enumerate()
- Functions for All Sequences
- Keywords and Operators for All Sequences
- The Range() Function
- Nested Sequences
- List Comprehensions
- Generator Expressions
Working with files
- Text File I/O
- Opening a Text File
- The With Block
- Reading a Text File
- Writing to a Text File
- Non-Delimited (Raw) Data
Dictionaries and Sets
- About Dictionaries
- When to Use Dictionaries
- Creating Dictionaries
- Getting Dictionary Values
- Iterating Through a Dictionary
- Reading File Data into a Dictionary
- Counting with a Dictionary
- About Sets
- Creating Sets
- Working with Sets
- Functions
- Defning a Function
- Function Parameters
- Returning Values
- Variable Scope
Sorting
- Sorting
- The Sorted() Function
- Alternate Keys
- Lambda Functions
- Sorting Nested Data
- \Sorting Dictionaries
- Sorting in Reverse
- Sorting Lists in Place
Using Modules
- Regular Expressions
- RE Syntax Overview
- RE Objects
- Searching for Patterns
- Matching Without Re Objects
- Compilation Fags
- Grouping
- Special Groups
- Replacing Text
- Splitting a String
Using the Standard Library
- The Sys Module
- Interpreter Information
- STDIO
- Launching External Programs
- Paths, Directories, and Filenames
- Walking Directory Trees
- Grabbing Web Pages
- Sending E-Mail
- Math Functions
- Random Values
- Dates And Times
- Zipped Archives
An Introduction to Python Classes
- About O-O Programming
- Defining Classes
- Initializers
- Instance Methods
- Properties
- Class Methods and Data
- Static Methods
- Private Methods
- Inheritance
- Untangling the Nomenclature
Bonus Exercises
- Appendix A: Bibliography
- Appendix B: Python Gotchas
- Appendix C: String Formatting