共 5 篇文章
显示摘要每页显示  条
Python字符串处理方法总结。用变量str代表字符串变量或字符串;返回str中出现substr的第一个字母的标号,如果str中没有substr则返回-1。返回str中最后出现的substr的第一个字母的标号,如果str中没有substr则返回-1,也就是说从右边算起的第一次出现的。5、str.count(substr, [start, [end]]) #计算substr在str中出现的次数。把str中左右两边包...
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...
#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''''''...
帮助 | 留言交流 | 联系我们 | 服务条款 | 下载网文摘手 | 下载手机客户端
北京六智信息技术股份有限公司 Copyright© 2005-2024 360doc.com , All Rights Reserved
京ICP证090625号 京ICP备05038915号 京网文[2016]6433-853号 京公网安备11010502030377号
返回
顶部