20170514 Lecture 2: runningman20170514

Source: Internet
Author: User

20170514 Lecture 2: runningman20170514

1. www.bejson.com online json format verification tool

2. Join two methods: Regular Expression and json path name + $.

3. The charles packet capture tool obtains information such as the Interface request method, response, cookies, and packets for convenient testing.

Connect to the mobile phone: proxy setting obtains the ip address of the computer. Modify the mobile phone. The mobile phone can be obtained from Charles.

The obtained https has a confidential display of unknown, which is not required for testing by the company.

Filter

Modify the selected breakpoints, refresh the page again, and then refresh the page again. Then, the excute page becomes the modified page.

Charles's intermediary intercepts the app or browser and transmits it to the server through him. The server also needs to go through chareles

Role: Simulate problem interfaces, fault tolerance, test system security, exception handling, and stability

4. Python

1)

Compile-type languages translate compiled programs into computer languages and then execute them. They are called a compilation task that runs everywhere. For example, c and c ++ are compiled languages, this language features fast running, but requires compilation of the program beforehand.

Interpreted language means that when a program is running, a interpreter is used to translate the code into a computer language and then run it. That is, you can directly run the code after writing it, for example, python, shell, ruby, java, perl, and so on are all interpreted languages. Of course, because of their different principles, the execution speed is not fast.

2) environment variable: c: \ python35

C: \ python35 \ script

2) single double quotation marks are used together. If both single quotation marks and double quotation marks exist in a sentence, three single quotation marks are added to the boundary.

Three single quotation marks for each comment in batches

Variable names can only be any combination of letters, numbers, or underscores
The first character of the variable name cannot be a number.
The following keywords cannot be declared as variable names

The input () function receives all string types. If you want to compare it with int, you must convert int ().

Print ('What is age type? ', type (age ))

 

# Only One boolean type is false.
# T = True
# F = False

Float Type, which can be compared with int type.

An error is returned when comparing different types of data.

In Python2, the int type operation takes an integer, And the decimal point 1/2 = 0 does not exist.

In python3, the floor is automatically rounded up after division of 1/2 z, and the decimal point is directly erased without rounding.

If is true or false)

# If the value is not 0, it is true if it is not null.

Ctrl + d copy a row quickly

 

% D indicates that the variable is an integer.

% F indicates the number of decimal places in the backend %. 2f.

Multiple variables

Format

5. Loop

While and

# The else corresponding to the for loop can be executed only after the for loop ends.

 

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.