我正在编写一个小程序,它应该循环遍历msg文件的文件夹(即MS Outlook电子邮件),并在其文件名前加一个短字符串。我继续遇到WindowsError:[错误32](进程无法访问该文件,因为它正被另一个进程使用)第33行(os.rename(filenameOLD,filenameNEW))。知道为什么吗?
print (*d.values() )
答案 0 :(得分:0)
您已打开邮件而未关闭它。而是做:
WITH first AS (
SELECT
TS.ArrayIndex,
TS.ArrayValue.FQN,
TS.ArrayValue.vqts
FROM
[EventHubInput] as hub
CROSS APPLY GetArrayElements(hub.timeseries) AS TS )
SELECT first.FQN ,( max(cast(vqt.arrayvalue.v as BIGINT))-(min(cast(vqt.arrayvalue.v as BIGINT)))) AS PPM
FROM first
CROSS APPLY GetArrayElements(first.vqts) AS vqt where first.FQN like '%Production%' and vqt.arrayvalue.q = 192
timestamp by
vqt.arrayvalue.t
group by
first.FQN, TumblingWindow(minute, 1)