我正在写一个脚本,它将打开一个txt文件,内容如下:
/1320 12-22-16 data0/impr789.dcm sent
/1340 12-22-18 data1/ir6789.dcm sent
/1310 12-22-16 data0/impr789.dcm
/1321 12-22-16 data0/impr789.dcm
我只想读取未标记的行,例如在上面的txt文件read line/1310中,然后执行一些操作将数据发送到云上,并将其标记为已发送。。在下一次迭代中,从/1321行读取并再次发送它,然后在末尾将它标记为sent。你知道吗
我该怎么做?你知道吗
谢谢!你知道吗
你可以这样做:
相关问题 更多 >
编程相关推荐