Introduction to Python + pycharm shortcuts

'' ' 
Python introduced, basic data operations, statements, containers, function.
Object-Oriented: OOA, OOA OOD, object-oriented design, of OOP object-oriented programming framework
advanced, integrated operating framework: modules and packages, exception handling, iteration, and generators, functional programming

1, weak grammar, heavy nature, the deep mechanism, in order to utilize
deep memory, analytical principles, in order to understand the syntax
to play ball: intention is not hard, first in mind, after the body

2, re-thought, re-design
mvc architecture idea,
object-oriented features of the three, six principles of learning design thinking
programmers internal strength, design ideas, with which classes, the relationship between these classes

3, is technology, more artistic
quality code: functionality, maintainability, flexibility of the
finished code, like natural language, easy to understand
reconstructed

4, project based and realistic
integrated throughout the operating framework for Python senior

learning: understanding
what knowledge is defined
why action
where adaptive applications where
how grammar
logic : point linked by lines

must be done
with seeing the logic
hand knock
* independently considered doing

the same day notes must finish
combing the day what they learn in the process of
prevention of future forgetfulness and trouble caused by confused
* theory , Code, illustration triple.
Notes half an hour, and the rest are code memory map is very important to draw

day1
system far more than content


Introduction to Python
define the
operating system: management and control of computer software and hardware resources that the program
cpu: executing instructions, operation data
regardless of the underlying language
to perform file mode: Interactive, * file type
cpython c programming language

run-time
source compile the code _ _ _ interpreted byte code machine code _
the first time every

file type: practice basic skills
integrated development environment: pycharm shortcuts
file-new new Project (Python) -new
Project show and hide (shortcut ALT + 1) or the Windows-Tools-Project View
Shift + F10 performs RUN
Close Tab Shift + Ctrl + F4
way dictionary: ctrl + alt + d

execution
interpreter types

of data basic operation
pycharm common shortcut keys
1, home Bank head
2, end tail Bank
3, Ctrl + / commented code
4, ctrl + d copy line (the next line automatically generate new)
5, select the columns: the left mouse button + alt
6, the mobile line: shift + ctrl + down key tops
7, hold the shift + home / end / or down key to select which part corresponds to the selected
8, ctrl + alt + l add a space, the canonical format
9, intelligent reminder: ctrl + space
10, linux system switching screen: ctrl + alt + down key
11, shift + enter switched from the middle of the upper row to the next
comment
function
variable
del statement
core data type
data type conversion
operator
statement

container type

function function
function definition:
1, packaging for a particular function, function or behavior represents a
2, is the function blocks can be executed repeatedly, can recall
effect:
increase of reproducibility and maintainability of the code (code layer structure clearer)
syntax:
DEF function name (parameter):
function body

Description: def keywords: stands for define, meaning: the definition of
the function name: description of the function body statements, rules and variables of the same name
in the form of parameters: the first method requested information provided by the caller
function body: the complete functionality of sentence


Scope LEGB

Guess you like

Origin www.cnblogs.com/xiaoliangliu86/p/11412376.html
Recommended