
import re
pattern = r"\(\w+(\.\w+)*\)"
# text = ""  # 输入的文本字符串

# 从文本中查找匹配的子模块名称列表
matches = re.findall(pattern, text)

# 提取所有子模块路径并存储到一个列表中
submodule_paths = [match.strip("()") for match in matches]

# 输出所有子模块路径
print(submodule_paths)