One for all,all for one.
2012年7月31日 星期二
Python handle Windows Error
try
:
os
.
remove
(
'abc.file'
)
except
WindowsError
,
value
:
print
value
.
args
Reference :
encoding - How to workaround Python \"WindowsError messages are not properly encoded\" problem? - Stack Overflow
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言