Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2006-04-25 06:55:54
Size: 872
Editor: Ericzhao82
Comment:
Revision 5 as of 2006-05-18 05:40:03
Size: 1164
Editor: Ericzhao82
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
##master-page:HomepageTemplate
#format wiki
== Ericzhao 's Page ==
import OS 模块
getcwd() //可以获取当前工作目录的路径
chdir('目录路径') //切换工作目录
chdir(os.pardir) //回到上级目录
makedirs //用来创建目录
open('文件名') //打开文件
write('要写入的内容') //
close() //关闭文件,退出
remove('文件名') //删除文件
removedirs('目录名') //删除空目录,空的!
import shutil //引入shutil模块
shutil.rmtree //删除目录,非空目录照样删除
#Using the os Module to Get Information About a File
#使用OS模块获取文件信息
#Using the os Module to Change a File's Privileges and Timestamps
# 使用OS模块改版文件的权限和时间戳
Email: [[MailTo([email protected])]]
##language:zh
#pragma section-numbers on
'''我的首页'''
Line 22: Line 5:
... ## 默许导航,请保留
[[TableOfContents]] ::-- ["Ericzhao82"] [[[DateTime(2006-05-10T06:50:38Z)]]]
Line 24: Line 8:
----
 . [:CategoryHomepage:Ericzhao]
##||项目表情|| (!) '''概念/筹备/设计ing'''|| {o} '''编写/开发/组织ing'''|| {*} '''试用/推行ing'''|| {OK} '''发行/应用ed'''|| |-) '''停顿''' ||
## 选用项目表情标识项目的当前状况
||[:WoodpeckerProjs:啄木鸟项目::] || (!) '''self:UrProjName''' || {o} '''[:UrProjOthers:关联项目]''' ||
= 看见‘yuanqi’俩字我就烦!!--去掉 =
'''小菜瞎捣鼓'''

## 一般是由列表中的邮件讨论引发的,所以可以使用 PyCNmail 的InterWiki 链接指向原始邮件 比如说:
 * '''[wiki:PyCNmail:2005-November/018404.html PythonGO开发计划]'''
== 学习记录 ==
||<style="vertical-align: top;">[[MonthCalendar]][[BR]][[Include(CPUGnav)]]||<style="vertical-align: top;">学习记录[[Include(^ericzhao82/200.*,'项目简报',4,sort=descending,items=13,titlesonly)]] ||
== 11 ==
== 22 ==
== 22 ==
== 33 ==
= 44 =
'''这个FrieFox也奇怪,特别是输入数字时,真不理解''' [[Include(/DisCuss)]]

我的首页

TableOfContents ::-- ["Ericzhao82"] [DateTime(2006-05-10T06:50:38Z)]

[:WoodpeckerProjs:啄木鸟项目::]

(!) self:UrProjName

{o} [:UrProjOthers:关联项目]

1. 看见‘yuanqi’俩字我就烦!!--去掉

小菜瞎捣鼓

1.1. 学习记录

MonthCalendarBRInclude(CPUGnav)

学习记录Include(^ericzhao82/200.*,'项目简报',4,sort=descending,items=13,titlesonly)

1.2. 11

1.3. 22

1.4. 22

1.5. 33

2. 44

这个FrieFox也奇怪,特别是输入数字时,真不理解 Include(/DisCuss)

Ericzhao82 (last edited 2009-12-25 07:17:38 by localhost)