#这是一个将srt字幕转换成文稿的小程序
#主要用来学习youtube上面各种各样的英文课程
# 同时也方便做笔记

name='(English)Lecture 9_ Machine Translation and Advanced Recurrent LSTMs and GRUs - YouTube'

filename = name+'.srt'

subtitle=open(name+'.txt','w',encoding='utf-8')

with open(filename, encoding='UTF-8') as file_obj:
    for line in file_obj:
        line = line.strip()
        if len(line) and not line.isdigit():
            first_str = line[0:2]
            if not first_str.isdigit():
                print(line)
                subtitle.write(line)

subtitle.close()

428dd392677b84cb18523d72e2da8f51e4ae728a
<mask token>

<mask token>
with open(filename, encoding='UTF-8') as file_obj:
    for line in file_obj:
        line = line.strip()
        if len(line) and not line.isdigit():
            first_str = line[0:2]
            if not first_str.isdigit():
                print(line)
                subtitle.write(line)
subtitle.close()

name = (
    '(English)Lecture 9_ Machine Translation and Advanced Recurrent LSTMs and GRUs - YouTube'
    )
filename = name + '.srt'
subtitle = open(name + '.txt', 'w', encoding='utf-8')
with open(filename, encoding='UTF-8') as file_obj:
    for line in file_obj:
        line = line.strip()
        if len(line) and not line.isdigit():
            first_str = line[0:2]
            if not first_str.isdigit():
                print(line)
                subtitle.write(line)
subtitle.close()

#这是一个将srt字幕转换成文稿的小程序
#主要用来学习youtube上面各种各样的英文课程
# 同时也方便做笔记

name='(English)Lecture 9_ Machine Translation and Advanced Recurrent LSTMs and GRUs - YouTube'

filename = name+'.srt'

subtitle=open(name+'.txt','w',encoding='utf-8')

with open(filename, encoding='UTF-8') as file_obj:
    for line in file_obj:
        line = line.strip()
        if len(line) and not line.isdigit():
            first_str = line[0:2]
            if not first_str.isdigit():
                print(line)
                subtitle.write(line)

subtitle.close()
