Basic python-string operations, basic python strings

Source: Internet
Author: User

Basic python-string operations, basic python strings

  • Highlight output
Syntax:
The display method, foreground color, and background color must exist at least. Display Mode: 0 (close all effects), 1 (highlighted), 4 (underlined), 5 (blinking), 7 (reversed), 8 (invisible ). The foreground color starts with 3 and the background color starts with 4. The specific color values include: 0 (black), 1 (red), 2 (green), 3 (yellow), 4 (blue ), 5 (purple), 6 (blue), 7 (white ). That is, the foreground green is 32, and the background blue is 44.
  • Uppercase letters
   
  • Count the number of occurrences of a character or string
 
  • Center print and fill
 
  • Print and fill on the left alignment
  • Right-aligned print and fill
  • End of judgment
 
  • Tab conversion Space
 
  • Search for characters
 
  • Format by dictionary
 
  • Whether it is a number + English character
 
  • English character only
 
  • Whether it is an integer
 
  • Decimal number?
 
  • Identifies a valid identifier.
 
  • Whether it is all lowercase
 
  • Uppercase or not
  • Whether it is a space
 
  • Whether it is an uppercase title type
 
  • Join
 
  • Case-sensitive Conversion
 
  • Remove spaces and press ENTER
 
  • Simple Encryption
  • Replace
 
  • Splits string by X into a list.
 
  • Split into lists by line feed
 
  • Uppercase and lowercase Interchange

<Wiz_tmp_tag id = "wiz-table-range-border" contenteditable = "false" style = "display: none;">

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.