举例1 import win32com.client as win32 xl = win32.Dispatch('Excel.Application')xl.Visible=True xl.Workbooks.Add()xlBook=xl.Workbooks(1)xlSheet=xl.Sheets(1)xlSheet.Cells(1,1).Value='What shall be the number of thy counting?...
举例1 import win32com.client as win32 xl = win32.Dispatch('Excel.Application')xl.Visible=True xl.Workbooks.Add()xlBook=xl.Workbooks(1)xlSheet=xl.Sheets(1)xlSheet.Cells(1,1).Value='What shall be the number of thy counting?...
d-%Y"))print(dater)#for folders in outlook.folders:#print(folders)Receipt=outlook.folders[8]print(Receipt)Ritems=Receipt.folders["Inbox"]Rmessage=Ritems.items for msg in Rmessage:if(msg.Class=46 and msg.CreationTime....