Getting started with python strings-learn python from scratch

1. The resident mechanism of strings

1. What is the string resident mechanism?

Insert picture description here

2. Several situations of resident mechanism (interactive mode)

Insert picture description here

3. The advantages and disadvantages of the residency mechanism

Insert picture description here

2. Common operations of strings

1. String query

Insert picture description here

2. Case conversion of strings

Insert picture description here

3. String content alignment

Insert picture description here

4. String splitting

Insert picture description here

5. Judge the string

Insert picture description here

6. Replace and merge character strings

Insert picture description here

7. String comparison

Insert picture description here

Three, string slice operation

1. Strings are immutable types

Insert picture description here

2. Practical drill

Insert picture description here

Fourth, format string

1. Why do you need a format string

Insert picture description here

2. Two ways of formatting

Insert picture description here

3. Practical drill

Insert picture description here

V. String encoding conversion

1. Why need string encoding conversion

Insert picture description here

2. Practical drill

Insert picture description here

6. Summary

Insert picture description here

Seven, python learning portal

Python quick start-learn python from scratch

Guess you like

Origin blog.csdn.net/weixin_43402353/article/details/109207458