ewfwef
This commit is contained in:
6
main.py
6
main.py
@@ -140,8 +140,10 @@ def h5group(nickname, db: Session = Depends(get_db)):
|
||||
pattern = r'收到(\w+)的在看'
|
||||
print(newtext)
|
||||
matches = re.findall(pattern, newtext)
|
||||
matchesString=matches[0]
|
||||
if matches:
|
||||
matchesString=None
|
||||
if len(matches)>0:
|
||||
matchesString=matches[0]
|
||||
if matchesString:
|
||||
print("匹配到的结果:", matchesString)
|
||||
# 判断是否在群中
|
||||
inGroup = False
|
||||
|
||||
Reference in New Issue
Block a user