Development:
Development language:
High-level language: Python Java, PHP C # Go Ruby C + + ... = = = byte code
Low-level language: C, assembly = = = "Machine code
The contrast between languages:
PHP class: For writing Web pages, limitations
Python Java: And can write Web pages can also write background functions
-Python execution efficiency is low and development efficiency is high
-High execution efficiency and low development efficiency in Java
A. Python basics
-Basic
1. The first sentence of Python
-the suffix name can be any?
-When importing a module, if it is not a. py file
==> after the file suffix name is. py
2. Two modes of execution
Python interpreter py file path
Python enters the interpreter:
Real-time input and get to execution results
3. Interpreter Path
#!/usr/bin/env python
4. Encoding
#-*-Coding:utf8-*-
5. Perform an action
Reminder user input: User and password
Get user name and password, detect: Username =root password =root
Correct: Login Successful
Error: Login failed
6. Variable Name
-Alphabet
-Digital
-Underline
Ps:
Number cannot start
cannot be the keyword ' and ', ' as ', ' assert ', ' Break ', ' class ', ' Continue ', ' Def ', ' del ', ' elif ', ' Else ', ' except ', ' exec ', ' finally ', ' fo R ', ' from ', ' global ', ' if ', ' Import ', ' on ', ' is ', ' lambda ', ' no ', ' or ', ' pass ', ' print ', ' raise ', ' return ', ' try ', ' while ' with ', ' yield '
It's best not to repeat what Python built-in, pycharm programming * * *
7. Conditional statements
1. If basic statement
2. If support nesting
3. If elif
8. Basic data types
9. Cycle
B. Network programming
C. Web Framework
D. Design pattern + algorithm
E. Project phase
"Python" Python Development