Why can't I use python strip () to remove the beginning and end of Chinese characters?

se=
se.strip (u "[u4e00-u9fa5] +")
"my Love 3453454 good composition"
se.strip (u "[u4e00-u9fa5] +")
"my Love 3453454 good composition"
se=u "my Love 3453454 good composition"
se.strip (u "[u4e00-u9fa5] +")
"my Love 3453454 good composition"
se.strip (u "[u4e00-u9fa5]") < [u4e00-u9fa5] ")
"my Love 3453454 good composition"
Mar.20,2021
The parameters of

strip () do not support regular expressions. The parameters are character sequences. If the string ends in that sequence, delete it. For example:
In [1]: se = "+ dwjsdd"
In [2]: se
Out [2]:'\ + dwjsd\ d'
In [3]: se.strip ("d +")
Out [3]: 'wjs'


import re
s1 = "3453454"
s2 = "3453454123432"

p = re.compile("[^\u4e00-\u9fa5]+")

print([i.group() for i in p.finditer(s1)])
print([i.group() for i in p.finditer(s2)])

try this method.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ba9c-2c2aa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ba9c-2c2aa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?