码迷,mamicode.com
首页 >  
搜索关键字:Python编程快速上手    ( 89个结果
python编程快速上手之第18章实践项目参考答案(18.14.3)
#! 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
python编程快速上手之第18章实践项目参考答案(18.4.1)
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
python编程快速上手之第15章实践项目参考答案(17.7.3)
#! 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
python编程快速上手之第15章实践项目参考答案(17.7.2)
#! 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
python编程快速上手之第15章实践项目参考答案(17.7.1)
#! 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实验: 选择性复制文件
#!python #coding:utf-8 ###编写一个程序,遍历一个目录树,查找特定扩展名的文件(诸如.pdf或.jpg)。Python编程快速上手——让繁琐工作自动化不论这些文件的位置在哪里,将它们拷贝到一个新的文件夹中。 importshutil,os,re filedir=‘C:\\Users\\Loyu\\Desktop\\python1‘ des..
分类:编程语言   时间:2017-06-05 22:08:49    阅读次数:326
python编程快速上手之第13章实践项目参考答案(13.6.2)
#! 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
python编程快速上手之第13章实践项目参考答案(13.6.3)
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
python编程快速上手之第13章实践项目参考答案(13.6.1)
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
python编程快速上手之第12章实践项目参考答案(12.13.3)
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
89条   上一页 1 ... 5 6 7 8 9 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!