Python basic learning notes (s t r method on the third day), python learning notes

Source: Internet
Author: User

Python basic learning notes (s t r method on the third day), python learning notes

Seven important functions

# '_'. Join ("as") concatenates each element in the string according to the specified separator
# Split remove a specified string for segmentation
# Find from the beginning, find the first one, and obtain its location
# Strip removes the white space on both sides of the string. lstrip and rstrip remove the white space on the left and right
# Upper converts all strings to uppercase. isupper determines whether the string is uppercase. true is returned. Otherwise, false is returned.
# Lower converts all strings to lower-case islower to determine whether the string is in lower-case. true is returned. Otherwise, false is returned.
# Replace (old, new [, max]) replaces the old (old string) in the string with new (new String). If the third parameter max is specified, the replacement cannot exceed max.

 

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.