共 5 篇文章 |
|
Python字符串处理方法总结。用变量str代表字符串变量或字符串;返回str中出现substr的第一个字母的标号,如果str中没有substr则返回-1。返回str中最后出现的substr的第一个字母的标号,如果str中没有substr则返回-1,也就是说从右边算起的第一次出现的。5、str.count(substr, [start, [end]]) #计算substr在str中出现的次数。把str中左右两边包... 阅1373 转10 评0 公众公开 19-01-27 13:32 |
App): def OnInit(self): self.frame = frame_main(None) self.frame.App): def OnInit(self): #加载窗体 self.frame = frame_main(None) #绑定事件 self.events = frame_main_events(self.frame) self.frame.Show() self.SetTopWindow(self.frame) return True... 阅13506 转18 评1 公众公开 19-01-27 13:31 |
#coding:utf-8from win32com.client import DispatchEximport os def open_xlsx(xlsx_path): #把相对路径转成绝对路径 xlsx_fullname = os.path.abspath(xlsx_path) #创建Excel对象 pythoncom.CoInitialize() excel = DispatchEx(''''''''excel.application''''''... 阅901 转7 评0 公众公开 19-01-27 13:30 |