Chapter 4: Text Processing

1. String constants

1). Strings are ordered set immutable

     Python does not distinguish between characters and strings

    All the characters are strings

    Strings are immutable

    String is an ordered collection of characters

2). String Functions

    Spoken operation

3) Using Python Apache access log analysis

4). String Format

 

2. Regular Expressions

1) Using re dealing with regular expressions library

2) re conventional method

3) Case: Get all hyperlinks in an HTML page

 

3. character set encoding

1) .UTF8 coding

2) Unicode .Python2 and in Python3

 

4.Jiaja2 template

1). Grammar

2) .Jinja2 inheritance and Super function

 

Guess you like

Origin www.cnblogs.com/allenhu320/p/11326342.html