#! python3 # encoding: UTF-8 import pyautogui, os, time from PIL import ImageGrab, ImageOps import os import time import pyautogui from numpy import * ...
分类:
编程语言 时间:
2017-06-11 16:24:47
阅读次数:
386
import pyautogui, time print('Press Ctrl-C to quit.') try: while True: time.sleep(10) pyautogui.moveRel(1, 0, duration=0.25) time.sleep(10) pyautogui.... ...
分类:
编程语言 时间:
2017-06-08 23:44:02
阅读次数:
290
#! python3 # encoding: UTF-8 import os,docx from PIL import Image, ImageDraw from PIL import ImageFont os.chdir('C:\\Users\\Administrator\\Python35-32... ...
分类:
编程语言 时间:
2017-06-08 01:28:49
阅读次数:
244
#! python3 # Import modules and write comments to describe this program. import zipfile, os from PIL import Image from PIL import ImageFile #os.chdir(... ...
分类:
编程语言 时间:
2017-06-07 00:41:38
阅读次数:
217
#! python3 # resizeAndAddLogo.py - Resizes all images in current working directory to fit # in a 300x300 square, and adds catlogo.png to the lower-rig... ...
分类:
编程语言 时间:
2017-06-06 23:34:57
阅读次数:
329
#!python
#coding:utf-8
###编写一个程序,遍历一个目录树,查找特定扩展名的文件(诸如.pdf或.jpg)。Python编程快速上手——让繁琐工作自动化不论这些文件的位置在哪里,将它们拷贝到一个新的文件夹中。
importshutil,os,re
filedir=‘C:\\Users\\Loyu\\Desktop\\python1‘
des..
分类:
编程语言 时间:
2017-06-05 22:08:49
阅读次数:
326
#! python3 # encoding: UTF-8 import os import docx from docx import Document from docx.shared import Pt from docx.shared import Inches os.chdir('C:\\U... ...
分类:
编程语言 时间:
2017-05-21 09:53:39
阅读次数:
305
import os,PyPDF2 os.chdir('C:\\Users\\Administrator\\Python35-32') dict=open('C:\\Users\\Administrator\\Python35-32\\dictionary.txt')#读入字典 pdfReader =... ...
分类:
编程语言 时间:
2017-05-21 09:49:50
阅读次数:
218
import os,PyPDF2 os.chdir('D:\\My Documents') for folderName, subfolders, filenames in os.walk('D:\\My Documents'): for file in filenames: if file.end... ...
分类:
编程语言 时间:
2017-05-18 22:36:09
阅读次数:
445
1 #! python3 2 import openpyxl,os,glob 3 os.chdir('C:\\Users\\Administrator\\Python35-32') 4 list=glob.glob('*.txt') 5 print(list) 6 wb = openpyxl.Wor... ...
分类:
编程语言 时间:
2017-05-16 00:42:33
阅读次数:
152