すぐ忘れるのでメモ
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import os
from os.path import *
print os.getcwd()
path = u'Org/test.xls'
print path
print basename(path)
print splitext(path)
print splitext(basename(path))
print dirname(path)
print abspath(path)
0 件のコメント:
コメントを投稿