Python Basics (ii)---string

Source: Internet
Author: User

Ord (' A '): ASCII encoding translates to corresponding serial number

Chr (66): ASCII code with integer corresponding to serial number

String.ascii_lowercase: Generate all lowercase English letter strings

String.digits: Generate all the numbers

String.count (Str,beg=0,end=len (String): Returns the number of times Str appears in a string if beg or end specifies the subscript range

String.expandtabs (tabsize=8): Converts the tab symbol in a string to a space

String.find (Str,beg=0,end=len (string): Find back subscript, otherwise return-1

String.Join (seq): Merges all elements (the string representation) of a SEQ into a new string with the specified string as a delimiter

String.strip ():

Python Basics (ii)---string

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.