上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: import timeimport itertools#破解简单密码。需要时间#repeat 选取6位#itertools.product() 组合排列 passwd=("".join(x) for x in itertools.product("0123456789",repeat=6))whil 阅读全文
posted @ 2019-03-12 10:05 飞飞阿 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #读word文件import win32comimport win32com.clientdef readWordFile(path): #调用系统word功能,可以出来doc和docx两种文件 mw=win32com.client.Dispatch("Word.Application") #打开w 阅读全文
posted @ 2019-03-10 23:25 飞飞阿 阅读(1881) 评论(0) 推荐(0) 编辑
摘要: from collections import OrderedDict#有序字典from pyexcel_xls import save_data #读取xls数据def makeExcelFile(path,data): dic=OrderedDict() for sheetName,sheetV 阅读全文
posted @ 2019-03-10 23:20 飞飞阿 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 当前目录下创建word文件import win32comimport win32com.clientimport osdef makeWordFile(fileName,name): word=win32com.client.Dispatch("Word.Application")#获取word程序 阅读全文
posted @ 2019-03-10 23:18 飞飞阿 阅读(687) 评论(0) 推荐(0) 编辑
摘要: import win32comimport win32com.clientdef makePPT(path): ppt=win32com.client.Dispatch("PowerPoint.Application") ppt.Visible=True #增加一个文件 pptFile=ppt.Pr 阅读全文
posted @ 2019-03-10 23:16 飞飞阿 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 安装包名 windows系统cmd进控制台 输入pip list找到你电脑已经安装的 然后pip install 包名 (就是下面这些找你要安装的包名): atomicwrites attrs colorama cycleret-xmlfile eyeD3 future jdcal kiwisolv 阅读全文
posted @ 2019-03-10 17:16 飞飞阿 阅读(1621) 评论(0) 推荐(0) 编辑
摘要: import tkinterfrom tkinter import ttkwin = tkinter.Tk()win.title("表格数据")win.geometry("800x600+600+100")#表格tree=ttk.Treeview(win)tree.pack()#定义列tree["c 阅读全文
posted @ 2019-03-08 21:06 飞飞阿 阅读(8343) 评论(0) 推荐(0) 编辑
摘要: import tkinterwin = tkinter.Tk()win.title("用Label和text表格布局")win.geometry("800x600+600+100")label1=tkinter.Label(win,text="good",bg="blue")label2=tkint 阅读全文
posted @ 2019-03-08 21:05 飞飞阿 阅读(1857) 评论(0) 推荐(0) 编辑
摘要: import tkinterwin = tkinter.Tk()win.title("绝对布局")win.geometry("800x600+600+100")label1=tkinter.Label(win,text="good",bg="blue")label2=tkinter.Label(wi 阅读全文
posted @ 2019-03-08 21:04 飞飞阿 阅读(1763) 评论(0) 推荐(0) 编辑
摘要: import tkinterwin = tkinter.Tk()win.title("银行系统")win.geometry("800x600+600+100")label1=tkinter.Label(win,text="good",bg="blue")label2=tkinter.Label(wi 阅读全文
posted @ 2019-03-08 21:03 飞飞阿 阅读(1319) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页