自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 ReadAllExcel

# -*- coding: utf-8 -*-#将多个Excel文件合并成一个import osimport xlrdimport xlsxwriter#打开一个excel文件def open_xls(file):    fh=xlrd.open_workbook(file)    return fh#获取excel中所有的sheet表def getsheet(fh):    return fh....

2018-05-04 13:06:20 288

原创 PyUserInput:鼠标和键盘模拟

# 导入模块import pymouse,pykeyboard,os,sysfrom pymouse import *from pykeyboard import PyKeyboardms = PyMouse() kb = PyKeyboard()# 【鼠标操作】#鼠标点击 # x,y 坐标位置 # button 1左键,2右键 # n 点击次数,默认1单击,2双击ms.click(x,y,but...

2018-04-12 10:47:38 983

原创 python 元组、列表、字典

#!/usr/bin/env python# -*- coding: utf-8 -*-#元组() turpletup = (1, 'one', '中国')print 'tup[2]=' , tup[2]#列表[] listlst = ['one', 'two', 'three']print 'lst[0]=' ,  lst[0]#字典{} dictionarydct = {'x':'one', ...

2018-04-11 17:06:54 113

原创 汉诺塔

#!/usr/bin/env python# -*- coding: utf-8 -*-# 迭代def hanoi(n,x,y,z):    if n<=1:        print x, ' --> ' ,z    else:        hanoi(n-1, x,z,y) #将前 n-1 个盘子从 x 移动到 y 上        print x, ' --> ' ,z ...

2018-04-11 16:48:07 88

原创 斐波那契数列

#!/usr/bin/env python# -*- coding: utf-8 -*-# 迭代def func1(n): s1 = 1 s2 = 1 s3 = 1 temp = 0 i = 1 if n<=2: return 1 while n>2: temp = s3 s...

2018-04-10 19:28:37 55

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除