StartTime="mm/dd/yyyy hh:mm:ss:ccc"
テキストファイルとしてフォーマットされ、そこにある文字列を取得するためのpythonスクリプトを書いていEndTime="mm/dd/yyyy hh:mm:ss:ccc"
ます。
StartTime
そこで、 andの検索に進みますが、 ( )Endtime
の後にあるものを取得するにはどうすればよいでしょうか? と文字列="mm/dd/yyyy hh:mm:ss:ccc"
を取得したら、関数を使用して別のテキスト ファイルに保存したいのですが、この部分は自分で処理できると思います。StartTime
EndTime
saveIntoFile(File, textToSave)
def getTimeCode(File) :
fopen = open(File, 'r')
text = fopen.read()
for t in text :
if t == "StartTime" :
#what should I do now ?
if t == "EndTime" :
#what should I do now ?
def saveIntoFile(filename, textToSave):