unicodeにすれば日本語にlowerとupperを使っても問題ないのね。
>>> print os.getcwd().lower() c:\documents and settings\tk\デベハトップ >>> print os.getcwdu().lower() c:\documents and settings\tk\デスクトップ
unicodeにすれば日本語にlowerとupperを使っても問題ないのね。
>>> print os.getcwd().lower() c:\documents and settings\tk\デベハトップ >>> print os.getcwdu().lower() c:\documents and settings\tk\デスクトップ