Python Full stack Development learning Note-06. Sixth Day

Source: Internet
Author: User

Basic elements of the interview:

1. Basic

Function-Type programming

Object oriented

BYTE, binary, and conversion

HTTP request Flow

2. Database design

Classic (blog, press release system)

3. Algorithms

[11, 22, 33, 44, 55, 66, 12312312]

Sort, maximum, second maximum

The most basic is the bubbling sort.

4. Intelligence Test

Bubbling algorithm

1. Two value swaps:

1 #!/usr/bin/env python2 #-*-coding:utf-8-*-3A1 = 1234A2 = 3455 Print("a1=%d\t a2 =%d"%(A1,A2))6TMP =A17A1 =A28A2 =tmp9 Ten Print("a1=%d\t a2 =%d"% (A1,A2))

2. First and second swaps in list

1 # !/usr/bin/env python 2 # -*-coding:utf-8-*- 3 4 5 li = [one, one, one,  6  7 temp = li[0]  8 li[0] = Li[1
   
    ] 
     9 li[1] =
     temp
    
    print(LI)
   

Python Full stack Development learning Note-06. Sixth Day

Related Article

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.