使用本机模块中的std :: cin

时间:2016-08-10 15:06:33

标签: c++ python-3.x ubuntu-16.04

我有一个原生模块并尝试从 Sub Multiple() Dim SecDir As String Dim MyDir As String Dim wbk As Workbook MyDir = "tlv-mpzyw:Users:lcohen:Google Drive:SQA:Projects:vbaBotRegression:" SecDir = "files:" strPath = MyDir & SecDir Debug.Print strPath strFile = Dir(strPath) 'Loop through each file in the folder Do While Len(strPath) > 0 If Right(strFile, 3) = "csv" Then Debug.Print strFile Set wbk = Workbooks.Open(Filename:=strPath & strFile) Range("E:E,K:K").Select Range("K1").Activate Selection.Delete Shift:=xlToLeft ActiveSheet.Range("b1").End(xlDown).Select ActiveCell.FormulaR1C1 = "=AVERAGE(R[-3]C:R[-1]C)/1000" ActiveSheet.Range("b1").End(xlDown).Select Selection.AutoFill Destination:=Range(ActiveCell, ActiveCell.Offset(0, 2)), Type:=xlFillDefault ActiveSheet.Range("e1").End(xlDown).Select ActiveCell.FormulaR1C1 = "=AVERAGE(R[-3]C:R[-1]C)" ActiveSheet.Range("e1").End(xlDown).Select Selection.AutoFill Destination:=Range(ActiveCell, ActiveCell.Offset(0, 4)), Type:=xlFillDefault wbk.Close SaveChanges:=False End If strFile = Dir Loop End Sub 读取,但似乎从未获得任何数据。现在我的问题是这是否可行,或者python是否默默地将输入消耗到自己的缓冲区中。

0 个答案:

没有答案