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
os 模块 提供对操作系统进行调用的接口 os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径 os.chdir("dirname") 改变当前脚本工作目录;相当于shell下cd os.curdir 返回当前目录: ('.') os.pardir 获取当前目录的父目录字符 ...
分类:
编程语言 时间:
2017-05-15 21:05:49
阅读次数:
173
#! python3 # blankRowInserter.py import openpyxl,os os.chdir('C:\\Users\\Administrator\\Python35-32') n=int(input('rowNum')) m=int(input('insertrowNum... ...
分类:
编程语言 时间:
2017-05-14 10:29:00
阅读次数:
417
#! /usr/bin/python #! -*- coding:utf-8 -*- import os def SplitFile(cnt): path='e:\data' filename=path+'\\qunti_deal.txt' os.chdir(path) i=0 n=0 size=o ...
分类:
其他好文 时间:
2017-05-13 11:18:42
阅读次数:
163
#! python3 # multiplicationTable.py import openpyxl,os from openpyxl.styles import Font, NamedStyle os.chdir('C:\\Users\\Administrator\\Python35-32') ... ...
分类:
编程语言 时间:
2017-05-12 01:38:15
阅读次数:
241
os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径 os.chdir("dirname") 改变当前脚本工作目录;相当于shell下cd os.curdir 返回当前目录: ('.') os.pardir 获取当前目录的父目录字符串名:('..') os.makedirs ...
分类:
其他好文 时间:
2017-05-06 01:00:02
阅读次数:
212
cd,有时也写作chdir(change directory,改变目录),是在Unix、Windows和DOS操作系统下用于改变工作目录的命令行命令。在Unix的外壳脚本与Windows或DOS的批处理文件中亦可使用。CHDIR()还是Visual Basic改变工作目录的一个函数。 目录 [隐藏] ...
分类:
其他好文 时间:
2017-05-03 17:26:57
阅读次数:
227
#python 3.5 , win10 引入包 #os.chdir('path') import osimport subprocess #https://docs.python.org/3.5/library/subprocess.html?highlight=subprocess#module- ...
分类:
编程语言 时间:
2017-05-02 13:52:43
阅读次数:
1474