小编Val*_*AND的帖子

写入文件?朱莉娅语言

这是我的文件的概述:

[2020/06/18 17:19:25] Window closed --> OptionDialog = 'Waiting Dialog - Session restore'  -->  frame = 'DataManager' 
[2020/06/18 17:19:40] Window opened -->  frame = 'DataManager' 
[2020/06/18 17:19:40] MB1  --> Menu item = [Toolbox]  -->  frame = 'DataManager' 
[2020/06/18 17:19:42] MB1  --> Menu item = [2G&R Synthesis toolbox, Toolbox]  --> Popup Menu -->  frame = 'DataManager' 
[2020/06/18 17:19:42] Window opened -->  frame = 'ToolBox' 
[2020/06/18 17:19:42] Window gained focus -->  frame = 'ToolBox' 
Run Code Online (Sandbox Code Playgroud)

我只想检索日期之后带有子字符串“Window”的行,然后将它们写入新的文本文件中。这是我到目前为止所做的:

file = open("Test2.txt") do file
    f = …
Run Code Online (Sandbox Code Playgroud)

file julia

4
推荐指数
1
解决办法
250
查看次数

标签 统计

file ×1

julia ×1