flying-wyf

2017年5月18日

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.endswith('.pdf'): pdfFile = open(file, ... 阅读全文

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

2017年5月16日

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

摘要: #! python3 # encoding: UTF-8 import openpyxl,os from openpyxl.utils import get_column_letter os.chdir('C:\\Users\\Administrator\\Python35-32') wb = openpyxl.load_workbook('TxttoExcel.xlsx') sheet = ... 阅读全文

posted @ 2017-05-16 01:14 flying-wyf 阅读(189) 评论(0) 推荐(1)

2017年5月15日

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.Workbook() 7 sheet = wb.get_active_sheet() 8... 阅读全文

posted @ 2017-05-15 23:46 flying-wyf 阅读(181) 评论(0) 推荐(0)

2017年5月14日

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

摘要: #! python3 # blankRowInserter.py import openpyxl,os os.chdir('C:\\Users\\Administrator\\Python35-32') n=int(input('rowNum')) m=int(input('insertrowNum')) name=('updatedProduceSales2.xlsx') wb = openp... 阅读全文

posted @ 2017-05-14 00:45 flying-wyf 阅读(184) 评论(0) 推荐(0)

2017年5月11日

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

摘要: #! python3 # multiplicationTable.py import openpyxl,os from openpyxl.styles import Font, NamedStyle os.chdir('C:\\Users\\Administrator\\Python35-32') num=int(input()) wb = openpyxl.Workbook() sheet =... 阅读全文

posted @ 2017-05-11 23:44 flying-wyf 阅读(246) 评论(0) 推荐(0)

2017年5月8日

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

摘要: from selenium import webdriver from selenium.webdriver.common.keys import Keys import time browser = webdriver.Firefox() url = 'https://gabrielecirulli.github.io/2048/' browser.get(url) game_ele = br... 阅读全文

posted @ 2017-05-08 22:27 flying-wyf 阅读(297) 评论(0) 推荐(0)

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

摘要: from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as ... 阅读全文

posted @ 2017-05-08 21:01 flying-wyf 阅读(210) 评论(0) 推荐(0)

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

摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- import os import re import urllib import json import socket import urllib.request import urllib.parse import urllib.error # 设置超时 import time timeout =... 阅读全文

posted @ 2017-05-08 20:59 flying-wyf 阅读(322) 评论(0) 推荐(0)

2017年4月27日

11.6 项目: “I’m Feeling Lucky”百度 查找

摘要: 改成百度了,你懂的。 阅读全文

posted @ 2017-04-27 21:53 flying-wyf 阅读(418) 评论(0) 推荐(0)

2017年4月23日

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

摘要: 1 #通过DEBUG可以看出是guess输入内容(heads, tails)和TOSS内容(0,1)不一致,需修改和TOSS的比较项。 2 import random,logging 3 logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') 4 loggin... 阅读全文

posted @ 2017-04-23 14:28 flying-wyf 阅读(162) 评论(0) 推荐(0)

导航