Python Basics-string manipulation

Source: Internet
Author: User

    • Output highlighting
Grammar:
display mode, foreground color, background color at least one exists. display mode: 0 (Close all effects), 1 (highlight), 4 (underscore), 5 (blinking), 7 (inverse), 8 (not visible). The foreground color starts with 3 and the background color starts with 4, with the specific colour values: 0 (Black), 1 (red), 2 (green), 3 (yellow), 4 (blue), 5 (purple), 6 (cyan), 7 (white). that is, the foreground green is 32 and the background blue is 44.  
    • Capitalize first letter
 
    • Count occurrences of one or a string of characters
    • Center Print and fill
    • Align left to print and fill
    • Align right to print and fill
    • End of Judgment
    • tab conversion Spaces
    • Find characters
    • Format by dictionary
    • Whether it is a numeric + English character
    • Whether it is a plain English character
    • Whether it is an integer
    • Whether it is a decimal number
    • Determine if it is a valid identifier
    • Whether it is all lowercase
    • Whether all uppercase
    • Whether it is a space
    • Is the initial capitalization of the heading type
    • Join
    • Uppercase and lowercase conversions
    • Remove spaces and carriage returns
    • Simple Encryption
    • Replace
    • Divide the string by X into a list
    • Split as list by line break
    • Uppercase Lowercase Interchange

<wiz_tmp_tag id= "Wiz-table-range-border" contenteditable= "false" style= "Display:none;" >

Python Basics-string manipulation

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.