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+)的在看'
|
pattern = r'收到(\w+)的在看'
|
||||||
print(newtext)
|
print(newtext)
|
||||||
matches = re.findall(pattern, newtext)
|
matches = re.findall(pattern, newtext)
|
||||||
matchesString=matches[0]
|
matchesString=None
|
||||||
if matches:
|
if len(matches)>0:
|
||||||
|
matchesString=matches[0]
|
||||||
|
if matchesString:
|
||||||
print("匹配到的结果:", matchesString)
|
print("匹配到的结果:", matchesString)
|
||||||
# 判断是否在群中
|
# 判断是否在群中
|
||||||
inGroup = False
|
inGroup = False
|
||||||
|
|||||||
Reference in New Issue
Block a user