用os.path处理文件名
摘要:
原文#!/usr/bin/env python#coding:utf-8#file:os4.py#用os.path处理文件名#参考:http://goo.gl/35V9pimport osclass MyFile: def __init__(self, file): '''初始化文件名 ''' #文件名 self.file = file #输出函数 self.osoutput() def osname(self): '''osname:系统名称''' return os.name def ospli 阅读全文
posted @ 2011-03-30 19:36 nwf 阅读(405) 评论(0) 推荐(0) 编辑