Python+selenium Study notes 5

Source: Internet
Author: User

This note is mainly taken from the tutorial on the Python website, plus a personal understanding

1. In interactive mode, the underscore ' _ ' can also represent the result of the previous step

2. Quote escaping problem.

The rule is that the quotation marks in a string are the same as the quotation marks in the string, and the quotes in the string need to be escaped. The difference is not required.

The last example looks unchanged, plus print () is different.

The difference between print () and no print ():

Print () function produces a more readable output, by omitting the enclosing quotes and by printing escaped and special Cha Racters:

\ n line break

3. List of lists

① Connect with a plus sign ("+")

② replacing elements

③ add element Append () to add after the last element

4. While loop

Python+selenium Study notes 5

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.