Obtain File size with os.path.getsize() in Python 2.7.5
问题 I am new to python. I am trying to use os.path.getsize() to obtain the file size. However, if the file name is not in Englist, but in Chinese, Gemany, or French, etc, Python cannot recognize it and do not return the size of the file. Could you please help me with it? How can I let Python recognize the file's name and return the size of these kind of files? For example: The file's name is:Показатели естественного и миграционного прироста до 2030г.doc path="C:\xxxx\xxx\xxxx\Показатели