efwf
This commit is contained in:
3
main.py
3
main.py
@@ -140,9 +140,12 @@ def h5group(nickname, db: Session = Depends(get_db)):
|
||||
pattern = r'收到(\w+)的在看'
|
||||
print(newtext)
|
||||
matches = re.findall(pattern, newtext)
|
||||
print("matches",matches)
|
||||
matchesString=None
|
||||
if len(matches)>0:
|
||||
matchesString=matches[0]
|
||||
print("matchesString",matchesString)
|
||||
|
||||
if matchesString:
|
||||
matchesString=remove_emojis(matchesString) #删除emoji字符串
|
||||
print("匹配到的结果:", matchesString)
|
||||
|
||||
Reference in New Issue
Block a user