def main():
data = open('D:\Postgraduate\TB1\TCP_family\Identification\亚细胞ID.txt', 'r', encoding='utf-8').read()
pattern = re.compile('start_pos=\d+\s(.*?)\n')
total_strs = data.split('\n\n') # 通过两个换行符对数据进行切割,切割成单条序列
sequence_numbers = re.findall(pattern, data) # 查找序列号
browser = webdriver.Edge('C:\Program Files (x86)\Microsoft\Edge\Application\msedgedriver.exe')
browser.get('http://www.csbio.sjtu.edu.cn/bioinf/plant-multi/')
D:\bioinformation\python\python.exe D:/bioinformation/python/py/亚细胞.py
D:/bioinformation/python/py/亚细胞.py:23: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
browser = webdriver.Edge('C:\Program Files (x86)\Microsoft\Edge\Application\msedgedriver.exe')
Process finished with exit code 0