"Python" Python Development

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.