##### Prologue: Summarize Python’s experience on how to efficiently judge Chinese, English, numerals, and other characters in strings

### Judge Chinese

St = “I love China ABC” for s in st: if > = u ‘\ u4e00’ s and s < = u ‘\ u9fa5: print (” % s is Chinese “% s)

Effect:

### Judge English

St = “I love China” for s in ST: If (s > = u ‘\ u0041’ and s < = u ‘\ u005a’) or (s > = u ‘\ u0061 and s < = u’ \ u007a) : print (” % s is % s “)

Effect:

### Judge the numbers

For s in ST: if s.issdigit (): print(“%s is %s “%s)

Effect:

### Judge the space

St = “I love China 520” for s in st: if sspace(): print(“%s is blank “%s)

Effect:

### Determine special characters based on else in the above case