flying-wyf

2017年6月11日

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 * 阅读全文

posted @ 2017-06-11 15:37 flying-wyf 阅读(384) 评论(1) 推荐(0)

2017年6月8日

python编程快速上手之第18章实践项目参考答案(18.14.2)

摘要: import pyautogui, time, os, pyautogui os.chdir('C:\\Users\\Administrator\\Python35-32\\test\\kuaisu') guests = open('sendMesTo.txt')#打开好友名单 for n in guests: pyautogui.click(1300, 1, button='lef... 阅读全文

posted @ 2017-06-08 23:08 flying-wyf 阅读(151) 评论(0) 推荐(0)

python编程快速上手之第18章实践项目参考答案(18.14.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.moveRel(-1, 0, duration=0.25) ... 阅读全文

posted @ 2017-06-08 21:56 flying-wyf 阅读(134) 评论(0) 推荐(0)

python编程快速上手之第17章实践项目参考答案(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\\test\\kuaisu') guests = open('guests.txt') lo... 阅读全文

posted @ 2017-06-08 00:35 flying-wyf 阅读(183) 评论(0) 推荐(0)

2017年6月6日

python编程快速上手之第17章实践项目参考答案(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('D:\\My Documents\\') ImageFile.LOAD_TRUNCATED_I... 阅读全文

posted @ 2017-06-06 23:36 flying-wyf 阅读(188) 评论(0) 推荐(0)

python编程快速上手之第17章实践项目参考答案(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-right corner. import os from PIL import Image os.c... 阅读全文

posted @ 2017-06-06 22:34 flying-wyf 阅读(351) 评论(0) 推荐(0)

2017年5月21日

python编程快速上手之第15章实践项目参考答案(15.12.1)

摘要: #! python3 # stopwatch.py - A simple stopwatch program. import time,pyperclip # Display the program's instructions. print('Press enter to begin. Afterwards, press ENTER to "click" the stopwatch. Pr... 阅读全文

posted @ 2017-05-21 21:42 flying-wyf 阅读(455) 评论(1) 推荐(0)

python编程快速上手之第14章实践项目参考答案(14.9)

摘要: import openpyxl,csv,os os.chdir('C:\\Users\\Administrator\\Python35-32\\test\\excelToCSV') for excelFile in os.listdir('.'): if not excelFile.endswith('.xlsx'): continue wb = openpyxl.load_w... 阅读全文

posted @ 2017-05-21 15:18 flying-wyf 阅读(205) 评论(0) 推荐(0)

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 = PyPDF2.PdfFileReader(open('encryptedminutes.pdf'... 阅读全文

posted @ 2017-05-21 00:57 flying-wyf 阅读(201) 评论(0) 推荐(0)

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:\\Users\\Administrator\\Python35-32') doc = docx.Do... 阅读全文

posted @ 2017-05-21 00:56 flying-wyf 阅读(215) 评论(0) 推荐(0)

导航